ARM: Recognize the IntRegs trace flag.

This commit is contained in:
Gabe Black 2009-07-01 22:11:12 -07:00
parent 065cb59427
commit 1f0c0a6688

View file

@ -34,6 +34,7 @@
#include "arch/arm/isa_traits.hh" #include "arch/arm/isa_traits.hh"
#include "arch/arm/types.hh" #include "arch/arm/types.hh"
#include "base/misc.hh" #include "base/misc.hh"
#include "base/trace.hh"
#include "sim/faults.hh" #include "sim/faults.hh"
#include "sim/serialize.hh" #include "sim/serialize.hh"
@ -84,6 +85,8 @@ namespace ArmISA
public: public:
IntReg readReg(int intReg) IntReg readReg(int intReg)
{ {
DPRINTF(IntRegs, "Reading int reg %d as %#x.\n",
intReg, regs[intReg]);
return regs[intReg]; return regs[intReg];
} }
@ -94,6 +97,7 @@ namespace ArmISA
Fault setReg(int intReg, const IntReg &val) Fault setReg(int intReg, const IntReg &val)
{ {
DPRINTF(IntRegs, "Setting int reg %d to %#x.\n", intReg, val);
regs[intReg] = val; regs[intReg] = val;
return NoFault; return NoFault;
} }