projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
065cb59
)
ARM: Recognize the IntRegs trace flag.
author
Gabe Black
<gblack@eecs.umich.edu>
Thu, 2 Jul 2009 05:11:12 +0000
(22:11 -0700)
committer
Gabe Black
<gblack@eecs.umich.edu>
Thu, 2 Jul 2009 05:11:12 +0000
(22:11 -0700)
src/arch/arm/regfile/int_regfile.hh
patch
|
blob
|
history
diff --git
a/src/arch/arm/regfile/int_regfile.hh
b/src/arch/arm/regfile/int_regfile.hh
index 938e6881605f144fe2219920d18b58ba74ff836d..b22129f33b33159866320a10cb0be95500938cf0 100644
(file)
--- a/
src/arch/arm/regfile/int_regfile.hh
+++ b/
src/arch/arm/regfile/int_regfile.hh
@@
-34,6
+34,7
@@
#include "arch/arm/isa_traits.hh"
#include "arch/arm/types.hh"
#include "base/misc.hh"
+#include "base/trace.hh"
#include "sim/faults.hh"
#include "sim/serialize.hh"
@@
-84,6
+85,8
@@
namespace ArmISA
public:
IntReg readReg(int intReg)
{
+ DPRINTF(IntRegs, "Reading int reg %d as %#x.\n",
+ intReg, regs[intReg]);
return regs[intReg];
}
@@
-94,6
+97,7
@@
namespace ArmISA
Fault setReg(int intReg, const IntReg &val)
{
+ DPRINTF(IntRegs, "Setting int reg %d to %#x.\n", intReg, val);
regs[intReg] = val;
return NoFault;
}