changeset 008930a4ace5 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=008930a4ace5
description:
        Registers: Eliminate the ISA defined RegFile class.

diffstat:

17 files changed, 115 deletions(-)
src/arch/alpha/miscregfile.hh         |    1 -
src/arch/alpha/regfile.cc             |   16 ----------------
src/arch/alpha/regfile.hh             |   16 ----------------
src/arch/arm/faults.cc                |    2 --
src/arch/arm/regfile/misc_regfile.hh  |    2 --
src/arch/arm/regfile/regfile.hh       |   14 --------------
src/arch/mips/faults.cc               |    2 --
src/arch/mips/regfile/misc_regfile.hh |    3 ---
src/arch/mips/regfile/regfile.hh      |   21 ---------------------
src/arch/sparc/isa_traits.hh          |    2 --
src/arch/sparc/regfile.hh             |   14 --------------
src/arch/x86/regfile.hh               |   13 -------------
src/cpu/inorder/cpu.hh                |    1 -
src/cpu/simple_thread.cc              |    3 ---
src/cpu/simple_thread.hh              |    3 ---
src/cpu/thread_context.hh             |    1 -
src/kern/tru64/tru64.hh               |    1 -

diffs (truncated from 327 to 300 lines):

diff -r 7a020652cd85 -r 008930a4ace5 src/arch/alpha/miscregfile.hh
--- a/src/arch/alpha/miscregfile.hh     Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/alpha/miscregfile.hh     Wed Jul 08 23:02:21 2009 -0700
@@ -57,7 +57,6 @@
 class MiscRegFile
 {
   public:
-    friend class RegFile;
     typedef uint64_t InternalProcReg;
 
   protected:
diff -r 7a020652cd85 -r 008930a4ace5 src/arch/alpha/regfile.cc
--- a/src/arch/alpha/regfile.cc Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/alpha/regfile.cc Wed Jul 08 23:02:21 2009 -0700
@@ -53,22 +53,6 @@
 #endif
 
 void
-RegFile::serialize(EventManager *em, ostream &os)
-{
-#if FULL_SYSTEM
-    SERIALIZE_SCALAR(intrflag);
-#endif
-}
-
-void
-RegFile::unserialize(EventManager *em, Checkpoint *cp, const string &section)
-{
-#if FULL_SYSTEM
-    UNSERIALIZE_SCALAR(intrflag);
-#endif
-}
-
-void
 copyRegs(ThreadContext *src, ThreadContext *dest)
 {
     // First loop through the integer registers.
diff -r 7a020652cd85 -r 008930a4ace5 src/arch/alpha/regfile.hh
--- a/src/arch/alpha/regfile.hh Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/alpha/regfile.hh Wed Jul 08 23:02:21 2009 -0700
@@ -46,22 +46,6 @@
 // redirected register map, really only used for the full system case.
 extern const int reg_redir[NumIntRegs];
 
-class RegFile {
-  public:
-#if FULL_SYSTEM
-    int intrflag;                   // interrupt flag
-#endif // FULL_SYSTEM
-
-    void
-    clear()
-    {
-    }
-
-    void serialize(EventManager *em, std::ostream &os);
-    void unserialize(EventManager *em, Checkpoint *cp,
-        const std::string &section);
-};
-
 void copyRegs(ThreadContext *src, ThreadContext *dest);
 
 void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
diff -r 7a020652cd85 -r 008930a4ace5 src/arch/arm/faults.cc
--- a/src/arch/arm/faults.cc    Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/arm/faults.cc    Wed Jul 08 23:02:21 2009 -0700
@@ -433,7 +433,6 @@
 {
 #if  FULL_SYSTEM
   DPRINTF(Arm,"%s encountered.\n", name());
-  //RegFile *Reg = tc->getRegFilePtr(); // Get pointer to the register fil
   setExceptionState(tc,0x0A);
   Addr HandlerBase;
 
@@ -469,7 +468,6 @@
 {
 #if  FULL_SYSTEM
   DPRINTF(Arm,"%s encountered.\n", name());
-  //RegFile *Reg = tc->getRegFilePtr(); // Get pointer to the register fil
   setExceptionState(tc,0x0A);
   Addr HandlerBase;
   HandlerBase= vect() + tc->readMiscRegNoEffect(ArmISA::EBase); // Offset 
0x180 - General Exception Vector
diff -r 7a020652cd85 -r 008930a4ace5 src/arch/arm/regfile/misc_regfile.hh
--- a/src/arch/arm/regfile/misc_regfile.hh      Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/arm/regfile/misc_regfile.hh      Wed Jul 08 23:02:21 2009 -0700
@@ -84,8 +84,6 @@
             assert(misc_reg < NumMiscRegs);
             miscRegFile[misc_reg] = val;
         }
-
-        friend class RegFile;
     };
 } // namespace ArmISA
 
diff -r 7a020652cd85 -r 008930a4ace5 src/arch/arm/regfile/regfile.hh
--- a/src/arch/arm/regfile/regfile.hh   Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/arm/regfile/regfile.hh   Wed Jul 08 23:02:21 2009 -0700
@@ -93,20 +93,6 @@
         r14_abt
     };
 
-    class RegFile
-    {
-      public:
-
-        void clear()
-        {}
-
-        void serialize(EventManager *em, std::ostream &os)
-        {}
-        void unserialize(EventManager *em, Checkpoint *cp,
-                         const std::string &section)
-        {}
-    };
-
     void copyRegs(ThreadContext *src, ThreadContext *dest);
 
     void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
diff -r 7a020652cd85 -r 008930a4ace5 src/arch/mips/faults.cc
--- a/src/arch/mips/faults.cc   Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/mips/faults.cc   Wed Jul 08 23:02:21 2009 -0700
@@ -435,7 +435,6 @@
 {
 #if  FULL_SYSTEM
   DPRINTF(MipsPRA,"%s encountered.\n", name());
-  //RegFile *Reg = tc->getRegFilePtr(); // Get pointer to the register fil
   setExceptionState(tc,0x0A);
   Addr HandlerBase;
 
@@ -471,7 +470,6 @@
 {
 #if  FULL_SYSTEM
   DPRINTF(MipsPRA,"%s encountered.\n", name());
-  //RegFile *Reg = tc->getRegFilePtr(); // Get pointer to the register fil
   setExceptionState(tc,0x0A);
   Addr HandlerBase;
   HandlerBase= vect() + tc->readMiscRegNoEffect(MipsISA::EBase); // Offset 
0x180 - General Exception Vector
diff -r 7a020652cd85 -r 008930a4ace5 src/arch/mips/regfile/misc_regfile.hh
--- a/src/arch/mips/regfile/misc_regfile.hh     Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/mips/regfile/misc_regfile.hh     Wed Jul 08 23:02:21 2009 -0700
@@ -48,9 +48,6 @@
 {
     class MiscRegFile {
       public:
-        // Give RegFile object, private access
-        friend class RegFile;
-
         // The MIPS name for this file is CP0 or Coprocessor 0
         typedef MiscRegFile CP0;
 
diff -r 7a020652cd85 -r 008930a4ace5 src/arch/mips/regfile/regfile.hh
--- a/src/arch/mips/regfile/regfile.hh  Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/mips/regfile/regfile.hh  Wed Jul 08 23:02:21 2009 -0700
@@ -92,27 +92,6 @@
     //TotalArchRegs = NumIntArchRegs * ShadowSets
     const int TotalArchRegs = NumIntArchRegs;
 
-
-    class RegFile {
-      public:
-        void clear()
-        {}
-        void reset(std::string core_name, ThreadID num_threads,
-                   unsigned num_vpes, BaseCPU *_cpu)
-        {}
-
-        void setShadowSet(int css)
-        {}
-
-      public:
-        void serialize(EventManager *em, std::ostream &os)
-        {}
-        void unserialize(EventManager *em, Checkpoint *cp,
-            const std::string &section)
-        {}
-
-    };
-
 } // namespace MipsISA
 
 #endif
diff -r 7a020652cd85 -r 008930a4ace5 src/arch/sparc/isa_traits.hh
--- a/src/arch/sparc/isa_traits.hh      Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/sparc/isa_traits.hh      Wed Jul 08 23:02:21 2009 -0700
@@ -44,8 +44,6 @@
 
 namespace SparcISA
 {
-    class RegFile;
-
     const int MachineBytes = 8;
 
     //This makes sure the big endian versions of certain functions are used.
diff -r 7a020652cd85 -r 008930a4ace5 src/arch/sparc/regfile.hh
--- a/src/arch/sparc/regfile.hh Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/sparc/regfile.hh Wed Jul 08 23:02:21 2009 -0700
@@ -47,20 +47,6 @@
     const int NumIntArchRegs = 32;
     const int NumIntRegs = (MaxGL + 1) * 8 + NWindows * 16 + NumMicroIntRegs;
 
-    class RegFile
-    {
-      public:
-
-        void clear()
-        {}
-
-        void serialize(EventManager *em, std::ostream &os)
-        {}
-        void unserialize(EventManager *em, Checkpoint *cp,
-            const std::string &section)
-        {}
-    };
-
     void copyRegs(ThreadContext *src, ThreadContext *dest);
 
     void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
diff -r 7a020652cd85 -r 008930a4ace5 src/arch/x86/regfile.hh
--- a/src/arch/x86/regfile.hh   Wed Jul 08 23:02:21 2009 -0700
+++ b/src/arch/x86/regfile.hh   Wed Jul 08 23:02:21 2009 -0700
@@ -84,19 +84,6 @@
         NumMMXRegs + 2 * NumXMMRegs + NumMicroFpRegs;
     const int NumFloatArchRegs = NumFloatRegs + 8;
 
-    class RegFile
-    {
-      public:
-        void clear()
-        {}
-
-        void serialize(EventManager *em, std::ostream &os)
-        {}
-        void unserialize(EventManager *em, Checkpoint *cp,
-                const std::string &section)
-        {}
-    };
-
     void copyRegs(ThreadContext *src, ThreadContext *dest);
 
     void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
diff -r 7a020652cd85 -r 008930a4ace5 src/cpu/inorder/cpu.hh
--- a/src/cpu/inorder/cpu.hh    Wed Jul 08 23:02:21 2009 -0700
+++ b/src/cpu/inorder/cpu.hh    Wed Jul 08 23:02:21 2009 -0700
@@ -77,7 +77,6 @@
     typedef TheISA::IntReg IntReg;
     typedef TheISA::FloatReg FloatReg;
     typedef TheISA::FloatRegBits FloatRegBits;
-    typedef TheISA::RegFile RegFile;
     typedef TheISA::MiscReg MiscReg;
 
     //DynInstPtr TypeDefs
diff -r 7a020652cd85 -r 008930a4ace5 src/cpu/simple_thread.cc
--- a/src/cpu/simple_thread.cc  Wed Jul 08 23:02:21 2009 -0700
+++ b/src/cpu/simple_thread.cc  Wed Jul 08 23:02:21 2009 -0700
@@ -110,7 +110,6 @@
 #endif
 {
     tc = new ProxyThreadContext<SimpleThread>(this);
-    regs.clear();
 }
 
 SimpleThread::~SimpleThread()
@@ -191,7 +190,6 @@
 SimpleThread::serialize(ostream &os)
 {
     ThreadState::serialize(os);
-    regs.serialize(cpu, os);
     SERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs);
     SERIALIZE_ARRAY(intRegs, TheISA::NumIntRegs);
     SERIALIZE_SCALAR(microPC);
@@ -207,7 +205,6 @@
 SimpleThread::unserialize(Checkpoint *cp, const std::string &section)
 {
     ThreadState::unserialize(cp, section);
-    regs.unserialize(cpu, cp, section);
     UNSERIALIZE_ARRAY(floatRegs.i, TheISA::NumFloatRegs);
     UNSERIALIZE_ARRAY(intRegs, TheISA::NumIntRegs);
     UNSERIALIZE_SCALAR(microPC);
diff -r 7a020652cd85 -r 008930a4ace5 src/cpu/simple_thread.hh
--- a/src/cpu/simple_thread.hh  Wed Jul 08 23:02:21 2009 -0700
+++ b/src/cpu/simple_thread.hh  Wed Jul 08 23:02:21 2009 -0700
@@ -90,7 +90,6 @@
 class SimpleThread : public ThreadState
 {
   protected:
-    typedef TheISA::RegFile RegFile;
     typedef TheISA::MachInst MachInst;
     typedef TheISA::MiscReg MiscReg;
     typedef TheISA::FloatReg FloatReg;
@@ -99,7 +98,6 @@
     typedef ThreadContext::Status Status;
 
   protected:
-    RegFile regs;       // correct-path register context
     union {
         FloatReg f[TheISA::NumFloatRegs];
         FloatRegBits i[TheISA::NumFloatRegs];
@@ -253,7 +251,6 @@
 
     void clearArchRegs()
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to