summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/floatregfile.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/arch/x86/floatregfile.cc b/src/arch/x86/floatregfile.cc
index 93f2d4fe1..1c49ea9c6 100644
--- a/src/arch/x86/floatregfile.cc
+++ b/src/arch/x86/floatregfile.cc
@@ -86,6 +86,7 @@
*/
#include "arch/x86/floatregfile.hh"
+#include "base/trace.hh"
#include "sim/serialize.hh"
#include <string.h>
@@ -111,22 +112,28 @@ void FloatRegFile::clear()
FloatReg FloatRegFile::readReg(int floatReg, int width)
{
- return d[floatReg];
+ FloatReg reg = d[floatReg];
+ DPRINTF(X86, "Reading %f from register %d.\n", reg, floatReg);
+ return reg;
}
FloatRegBits FloatRegFile::readRegBits(int floatReg, int width)
{
- return q[floatReg];
+ FloatRegBits reg = q[floatReg];
+ DPRINTF(X86, "Reading %#x from register %d.\n", reg, floatReg);
+ return reg;
}
Fault FloatRegFile::setReg(int floatReg, const FloatReg &val, int width)
{
+ DPRINTF(X86, "Writing %f to register %d.\n", val, floatReg);
d[floatReg] = val;
return NoFault;
}
Fault FloatRegFile::setRegBits(int floatReg, const FloatRegBits &val, int width)
{
+ DPRINTF(X86, "Writing bits %#x to register %d.\n", val, floatReg);
q[floatReg] = val;
return NoFault;
}