By the way, from the source code, the instSize=sizeof(TheISA::Machinst), and for the X86 ISA, Machinst is from the u_int64_t, which is 64 bits. So could I know is the inst size is 8 bytes in Gem5 by default for X86 ISA? Please correct me if I'm wrong. Thanks
Regards Xiangyang On Tue, Jun 25, 2013 at 2:48 PM, Xiangyang Guo <ece...@gmail.com> wrote: > Hi, gem5-user, > > I want to collect the instruction size in X86. I printout the "instSize" > in src/cpu/o3/fetch_impl.hh. It shows that all the instruction size is > 8, which means all the instruction is 64 bits. From my understanding, the > instruction size should be variable in X86 ISA, So could anyone tell me why > all the instruction size is same and it's 8? Thanks a lot. > > In addition, does the instruction size matter with the X86 mode. I mean if > I choose another mode, such as "compatibly mode" by changing the configure > in process.cc, should the instruction size change ? Actually, I changed the > mode from "sixtyfourbitmode" to"compatibility mode", but the instruction > size is still 8. > > Any hint is appreciable. Thank you for your time. > > Xiangyang >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users