Add some dprintfs
--HG-- extra : convert_revision : 7e9a1feb808604364584893eed1735a8da1556fb
This commit is contained in:
parent
a7f3bbcfab
commit
4ad73abcfb
|
@ -87,6 +87,7 @@
|
||||||
|
|
||||||
#include "arch/x86/intregfile.hh"
|
#include "arch/x86/intregfile.hh"
|
||||||
#include "base/misc.hh"
|
#include "base/misc.hh"
|
||||||
|
#include "base/trace.hh"
|
||||||
#include "sim/serialize.hh"
|
#include "sim/serialize.hh"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -119,11 +120,13 @@ void IntRegFile::clear()
|
||||||
|
|
||||||
IntReg IntRegFile::readReg(int intReg)
|
IntReg IntRegFile::readReg(int intReg)
|
||||||
{
|
{
|
||||||
|
DPRINTF(X86, "Read int reg %d and got value %#x\n", intReg, regs[intReg]);
|
||||||
return regs[intReg];
|
return regs[intReg];
|
||||||
}
|
}
|
||||||
|
|
||||||
void IntRegFile::setReg(int intReg, const IntReg &val)
|
void IntRegFile::setReg(int intReg, const IntReg &val)
|
||||||
{
|
{
|
||||||
|
DPRINTF(X86, "Setting int reg %d to value %#x\n", intReg, val);
|
||||||
regs[intReg] = val;
|
regs[intReg] = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue