Hi all,

I was trying to add a pseudo instruction(add instruction). I have been 
following this tutorial
http://gedare-csphd.blogspot.com/2013/02/add-pseudo-instruction-to-gem5.html
This is with respect to older gem5 versions I guess. Some of the files have 
been renamed and I made corresponding changes. These are the changes that I 
have made:
In isa/decoder/two_byte_opcodes.isa
I have over-ridden m5reserved2 (0x56) instruction.
In src/sim/pseudo_inst.cc and pseudo_inst.hh
I have added the definition and declared the instruction
I have made changes in util/m5/m5op_x86.S,  include/gem5/m5ops.h ,  
include/gem5/asm/generic/m5ops.h

I have used the instruction in my program and compiled it using the command:
gcc ~/helloworld.c -I gem5/include/ -I gem5/include/gem5/ 
gem5/util/m5/m5op_x86.S -o hello
There are no errors in the compilation. But while running the program in the 
simulator I am getting a warning: M5 reserved opcode 2 ignored and I am getting 
some random value as the sum.
Am I doing anything wrong? Do I have to make any additional changes?
Thanks for your time.



Thanks,
Saideepak.
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to