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