gem5-users@gem5.org

The gem5 Users mailing list

View all threads

fault injection into gem5 register?

李阳
Mon, Aug 15, 2016 1:24 AM

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

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
FE
Fernando Endo
Sat, Aug 20, 2016 4:45 PM

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 李阳 <yanglee.cqu(a)gmail.com>:

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
gem5-users(a)gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

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 李阳 <yanglee.cqu(a)gmail.com>: > 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 > gem5-users(a)gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >