Hello,

You can look at src/cpu/SConscript and check if some debug flag dump
branches. You can also create a new flag based on existing DPRINTF in the
source.

Regards,

--
Fernando A. Endo, Post-doc

INRIA Rennes-Bretagne Atlantique
France


2016-08-15 3:24 GMT+02:00 李阳 <[email protected]>:

> Hi all,
>
> I am doing branch fault injection into gem5 register. And according the
> maillist, I have some thoughts: Modify the 
> path_to_gem5_source/src/cpu/simple/atomic.cc
> and add the code to dump the register value and assign new value to the
> regsiter and then re-compile gem5.fast.
>
> However, in my experiment, I cannot trace the branch instruction when
> running a binary. Is there ant ways to identify the branch instruction and
> get the operands?
>
> 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