Hello,
I'm working on a thesis that includes fault injection in connection with
gem5 (ARM specific) and I'm looking for a way to implement some sort of
single stepping for this. I already found the method the RemoteGDB uses,
but there seems to be a problem with some machine instructions.
What the RemoteGDB does, is looking at the current program counter and
setting a new breakpoint to the next PC. If the instruction at the
current PC is a branch, it also sets a new breakpoint to the branch
target. The first problem I found was that the bxeq instruction (like
the one that is in the example bootloader for arm) isn't recognized as a
branch instruction. Another problem is that for Thumb-2 instructions,
the next PC is always set to 16 bit after the current, even if it's a 32
bit long instruction.
Maybe someone knows an easy way to fix this or if there is a better way
to get single stepping.
Regards,
Tobias
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users