Reorganize the floating point register file a little.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 5 Mar 2007 17:57:26 +0000 (17:57 +0000)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 5 Mar 2007 17:57:26 +0000 (17:57 +0000)
--HG--
extra : convert_revision : 643c147b77e931d49ac559681d4bbda737f6e1c7

src/arch/x86/floatregfile.hh

index 67ce7c18eac1614707ae7e1242aead7e48fc6843..18371280dc93b81f1cf6d485799b54e873a4be93 100644 (file)
@@ -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();