Hi,
I will suggest you to look at the curStaticInst (--> StaticInst)
implementation and see the available functions and objects in StaticInst
class that you can make use of (if you have not already done so). You can
check if the ins is a control inst using "isControl()" and possibly
generate the disassembly of the instruction. I hope this is what you were
looking for !

--
Ayaz

On Fri, Jul 29, 2016 at 3:16 AM, 李阳 <[email protected]> wrote:

> Hi all,
>
> I want to inject some branch faults into the  armv8 architecture.
>
> So I choose the gem5 platform to run the aarch64 operating system in the
> full-system mode and modify the source code in the cpu/simple/atomic.cc to
> obtain the value in the registers.
>
> However I am stuck in finding the branch instruction. So Do you have any
> related experience and share with me?
>
> Thanks in advance!
>
> Best,
> liyang
>
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to