thank you for reply i have read -- http://gem5.org/M5ops and tutorious many times, but i can't understand how to do it, so i read util/m5/m5op.h, util/m5/m5.c and util/m5/m5op_alpha.S. It seems that have many work to do, it should edit ISA Parser and so on. it's almost impossible for me to continue, could you give me a detailed example. Best Regards xu xin > Yes, it is possible to insert instructions in to the source code that are > not part of the ISA definition. You might want to take a look at this page > -- http://gem5.org/M5ops. It seems old, but would get you started. > > Then, take a look at the files in util/m5, opcodes for some of the common > operations have been defined. You can insert calls to functions defined > util/m5/m5op.h, and then compile your application with the *.S file > appropriate for your architecture. > > -- > Nilay > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users