projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7f3bbc
)
Add some dprintfs
author
Gabe Black
<gblack@eecs.umich.edu>
Tue, 12 Jun 2007 16:22:35 +0000
(16:22 +0000)
committer
Gabe Black
<gblack@eecs.umich.edu>
Tue, 12 Jun 2007 16:22:35 +0000
(16:22 +0000)
--HG--
extra : convert_revision :
7e9a1feb808604364584893eed1735a8da1556fb
src/arch/x86/intregfile.cc
patch
|
blob
|
history
diff --git
a/src/arch/x86/intregfile.cc
b/src/arch/x86/intregfile.cc
index 15e86d88b0d4d3fe32fee2814528ebe0c9ad4f4a..9c9ea134e6f7182d228f5b9f20296d925f68e170 100644
(file)
--- a/
src/arch/x86/intregfile.cc
+++ b/
src/arch/x86/intregfile.cc
@@
-87,6
+87,7
@@
#include "arch/x86/intregfile.hh"
#include "base/misc.hh"
+#include "base/trace.hh"
#include "sim/serialize.hh"
#include <string.h>
@@
-119,11
+120,13
@@
void IntRegFile::clear()
IntReg IntRegFile::readReg(int intReg)
{
+ DPRINTF(X86, "Read int reg %d and got value %#x\n", intReg, regs[intReg]);
return regs[intReg];
}
void IntRegFile::setReg(int intReg, const IntReg &val)
{
+ DPRINTF(X86, "Setting int reg %d to value %#x\n", intReg, val);
regs[intReg] = val;
}