projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
873112e
)
Simple CPU: Make the simple CPU handle the IntRegs trace flag.
author
Gabe Black
<gblack@eecs.umich.edu>
Wed, 29 Jul 2009 07:15:26 +0000
(
00:15
-0700)
committer
Gabe Black
<gblack@eecs.umich.edu>
Wed, 29 Jul 2009 07:15:26 +0000
(
00:15
-0700)
src/cpu/simple_thread.hh
patch
|
blob
|
history
diff --git
a/src/cpu/simple_thread.hh
b/src/cpu/simple_thread.hh
index d9d624e77dffdfd92f71443cd2a0ddd75a5bea15..8a44eba3712d4eb0fd42904c1aab1afa5114f262 100644
(file)
--- a/
src/cpu/simple_thread.hh
+++ b/
src/cpu/simple_thread.hh
@@
-262,7
+262,9
@@
class SimpleThread : public ThreadState
{
int flatIndex = isa.flattenIntIndex(reg_idx);
assert(flatIndex < TheISA::NumIntRegs);
- return intRegs[flatIndex];
+ uint64_t regVal = intRegs[flatIndex];
+ DPRINTF(IntRegs, "Reading int reg %d as %#x.\n", reg_idx, regVal);
+ return regVal;
}
FloatReg readFloatReg(int reg_idx)
@@
-283,6
+285,7
@@
class SimpleThread : public ThreadState
{
int flatIndex = isa.flattenIntIndex(reg_idx);
assert(flatIndex < TheISA::NumIntRegs);
+ DPRINTF(IntRegs, "Setting int reg %d to %#x.\n", reg_idx, val);
intRegs[flatIndex] = val;
}