diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-09-04 23:40:47 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-09-04 23:40:47 -0700 |
commit | 26ba7cc3b233ae2b3c036de2998e0c5e0a4c340d (patch) | |
tree | e7946be3d2754caedbc0b2cf3b6c7884e8213c76 | |
parent | 26044dca33cb86928778a314186773b921826cdb (diff) | |
download | gem5-26ba7cc3b233ae2b3c036de2998e0c5e0a4c340d.tar.xz |
X86: Add tracing to the floating point register file.
--HG--
extra : convert_revision : f452d9179b929b980cf9e2d1e3de0431c51c5f4a
-rw-r--r-- | src/arch/x86/floatregfile.cc | 11 |
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; } |