diff options
author | Korey Sewell <ksewell@umich.edu> | 2006-05-04 20:49:24 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2006-05-04 20:49:24 -0400 |
commit | 2e7e844768e160bf81be53d6b633f3851bb4ea80 (patch) | |
tree | 6e8beceb6aa8156dcf118cf3525c96e17edc902b /arch/mips | |
parent | 97429d8eeede120a2a78407f3573aa7a05075a89 (diff) | |
download | gem5-2e7e844768e160bf81be53d6b633f3851bb4ea80.tar.xz |
recognized 32 & 64 bit unsigned integer types and set the width appropriately
arch/mips/isa_traits.hh:
debug statements to be taken out real soon like...
--HG--
extra : convert_revision : 4e9abcb99c991db93328d01d7606a2bb942b29ee
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/isa_traits.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/isa_traits.hh b/arch/mips/isa_traits.hh index 671d36b87..105d4c283 100644 --- a/arch/mips/isa_traits.hh +++ b/arch/mips/isa_traits.hh @@ -226,14 +226,20 @@ namespace MipsISA double readReg(int floatReg, int width) { + using namespace std; + switch(width) { case SingleWidth: void *float_ptr = ®s[floatReg]; + cout << "reading as float, reg." << floatReg << ": " << *(float *) float_ptr << endl; + cout << "reading as uint32_t, reg." << floatReg << ": " << *(uint32_t *) float_ptr << endl; return *(float *) float_ptr; case DoubleWidth: void *double_ptr = ®s[floatReg]; + cout << "reading as double, reg." << floatReg <<": " << *(double *) double_ptr << endl; + cout << "reading as uint64_t, reg." << floatReg << hex << ": 0x" << *(uint64_t *) float_ptr << endl; return *(double *) double_ptr; default: |