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

[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

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,