X86: Add tracing to the floating point register file.
--HG-- extra : convert_revision : f452d9179b929b980cf9e2d1e3de0431c51c5f4a
This commit is contained in:
parent
26044dca33
commit
26ba7cc3b2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue