Actually finished moving the register file stuff around.
authorGabe Black <gblack@eecs.umich.edu>
Fri, 10 Nov 2006 10:49:16 +0000 (05:49 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Fri, 10 Nov 2006 10:49:16 +0000 (05:49 -0500)
--HG--
extra : convert_revision : 786735ecea8ff480db6b3754ac5daa562938d988

src/arch/alpha/floatregfile.hh
src/arch/alpha/intregfile.hh
src/arch/alpha/miscregfile.hh
src/arch/alpha/regfile.hh

index 6b394da03ba59d2c1a18869cd974d70bd9db68b4..d289f57857fe9a16e69b80eea05d4deffdcbeb9f 100644 (file)
@@ -42,6 +42,11 @@ class Checkpoint;
 
 namespace AlphaISA
 {
+    static inline std::string getFloatRegName(RegIndex)
+    {
+        return "";
+    }
+
     class FloatRegFile
     {
       public:
index 78f66634594799567e79c7856e0648e973498306..0d65f69e0d925b344c9eaeee74b4fe52f625c71a 100644 (file)
@@ -41,6 +41,11 @@ class Checkpoint;
 
 namespace AlphaISA
 {
+    static inline std::string getIntRegName(RegIndex)
+    {
+        return "";
+    }
+
     // redirected register map, really only used for the full system case.
     extern const int reg_redir[NumIntRegs];
 
index 85cb054bbb6e50f14319375c3b6c9329eef4bffd..31b3e59b3db4c415580e302975d02d3786b5667e 100644 (file)
@@ -54,6 +54,11 @@ namespace AlphaISA
         MISCREG_INTR
     };
 
+    static inline std::string getMiscRegName(RegIndex)
+    {
+        return "";
+    }
+
     class MiscRegFile {
       protected:
         uint64_t       fpcr;           // floating point condition codes
index 091f0e2e6a5b31d02c1a00f4bae92d236be8c245..ff58308227ac77b01c50295da04e858f7b6ba546 100644 (file)
@@ -32,6 +32,7 @@
 #define __ARCH_ALPHA_REGFILE_HH__
 
 #include "arch/alpha/isa_traits.hh"
+#include "arch/alpha/floatregfile.hh"
 #include "arch/alpha/intregfile.hh"
 #include "arch/alpha/miscregfile.hh"
 #include "arch/alpha/types.hh"
@@ -47,38 +48,6 @@ class ThreadContext;
 namespace AlphaISA
 {
 
-    static inline std::string getIntRegName(RegIndex)
-    {
-        return "";
-    }
-
-    static inline std::string getFloatRegName(RegIndex)
-    {
-        return "";
-    }
-
-    static inline std::string getMiscRegName(RegIndex)
-    {
-        return "";
-    }
-
-    class FloatRegFile
-    {
-      public:
-
-        union {
-            uint64_t q[NumFloatRegs];  // integer qword view
-            double d[NumFloatRegs];    // double-precision floating point view
-        };
-
-        void serialize(std::ostream &os);
-
-        void unserialize(Checkpoint *cp, const std::string &section);
-
-        void clear()
-        { bzero(d, sizeof(d)); }
-    };
-
     class RegFile {
 
       protected: