summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-03-05 17:57:26 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-03-05 17:57:26 +0000
commita473d50e4c8be5685f4188402c3790d6f4ceb951 (patch)
tree0eebdeea92195c112df67adc60c2b1bd1a0bde33 /src/arch/x86
parenta46e100bd921de02c34862acd6b69d25dc37eb47 (diff)
downloadgem5-a473d50e4c8be5685f4188402c3790d6f4ceb951.tar.xz
Reorganize the floating point register file a little.
--HG-- extra : convert_revision : 643c147b77e931d49ac559681d4bbda737f6e1c7
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/floatregfile.hh11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/arch/x86/floatregfile.hh b/src/arch/x86/floatregfile.hh
index 67ce7c18e..18371280d 100644
--- a/src/arch/x86/floatregfile.hh
+++ b/src/arch/x86/floatregfile.hh
@@ -105,8 +105,17 @@ namespace X86ISA
class FloatRegFile
{
+ public:
+ static const int SingleWidth = 32;
+ static const int DoubleWidth = 64;
+ static const int QuadWidth = 128;
+
protected:
- double regs[NumFloatRegs];
+ union
+ {
+ uint64_t q[NumFloatRegs];
+ double d[NumFloatRegs];
+ };
public:
void clear();