Re: [gem5-users] Instruction size

2020-03-11 Thread niranjan soundararajan
got the size of inst from pcstate().size.

Thanks

On Wed, Mar 11, 2020 at 11:28 AM niranjan soundararajan <
niranja...@gmail.com> wrote:

> Hello
>
> For x86 direct branch instructions, the branchTarget() function returns a
> panic. When trying to add the code to get the actual branch target (at
> decode), I am using the immediate field (which should capture the offset to
> next PC for direct branches) but there is a slight difference (few bytes).
> Any idea why this would be the case.
>
> Also what is an option to get the size of the instruction
>
> Thank
> niranjan
>
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Instruction size

2020-03-10 Thread niranjan soundararajan
Hello

For x86 direct branch instructions, the branchTarget() function returns a
panic. When trying to add the code to get the actual branch target (at
decode), I am using the immediate field (which should capture the offset to
next PC for direct branches) but there is a slight difference (few bytes).
Any idea why this would be the case.

Also what is an option to get the size of the instruction

Thank
niranjan
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] instruction size

2013-06-26 Thread Xiangyang Guo
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 tocompatibility 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