summaryrefslogtreecommitdiff
path: root/src/arch/x86/floatregfile.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/floatregfile.hh')
-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();