SPARC: Get rid of the setGlobals function.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 25 Feb 2009 18:21:46 +0000 (10:21 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 25 Feb 2009 18:21:46 +0000 (10:21 -0800)
src/arch/sparc/intregfile.cc
src/arch/sparc/intregfile.hh

index 28299c9b3a55a13607699d67cb5d06559ed1eb3b..26637ddad3ca9da7aaab87a19eb3b6233d93bd23 100644 (file)
@@ -118,19 +118,6 @@ void IntRegFile::setReg(int intReg, const IntReg &val)
     } */
 }
 
-void IntRegFile::setGlobals(int gl)
-{
-    DPRINTF(RegisterWindows, "Now using %d globals\n", gl);
-
-    regView[Globals] = regGlobals[gl];
-    offset[Globals] = RegGlobalOffset + gl * RegsPerFrame;
-
-    if (regView[Globals] == regView[Inputs] ||
-        regView[Globals] == regView[Locals] ||
-        regView[Globals] == regView[Outputs] )
-        panic("Two register arrays set to the same thing!\n");
-}
-
 void IntRegFile::serialize(std::ostream &os)
 {
     SERIALIZE_ARRAY(regs, NumIntRegs);
index 0d1fe413e17b3b344cef768ff1446f5e36b2b853..ce9bcadb6bf49e0bcee79c53939bbd26bde38535 100644 (file)
@@ -100,9 +100,6 @@ namespace SparcISA
         void serialize(std::ostream &os);
 
         void unserialize(Checkpoint *cp, const std::string &section);
-
-      protected:
-        void setGlobals(int gl);
     };
 }