changeset 504e13722ce9 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=504e13722ce9
description:
        SPARC: Get rid of the setCWP function.

diffstat:

2 files changed, 25 deletions(-)
src/arch/sparc/intregfile.cc |   20 --------------------
src/arch/sparc/intregfile.hh |    5 -----

diffs (52 lines):

diff -r fec76fcabf67 -r 504e13722ce9 src/arch/sparc/intregfile.cc
--- a/src/arch/sparc/intregfile.cc      Wed Feb 25 10:21:33 2009 -0800
+++ b/src/arch/sparc/intregfile.cc      Wed Feb 25 10:21:40 2009 -0800
@@ -73,7 +73,6 @@
 {
     offset[Globals] = 0;
     regView[Globals] = regGlobals[0];
-    setCWP(0);
     clear();
 }
 
@@ -119,25 +118,6 @@
     } */
 }
 
-//This doesn't effect the actual CWP register.
-//It's purpose is to adjust the view of the register file
-//to what it would be if CWP = cwp.
-void IntRegFile::setCWP(int cwp)
-{
-    int index = ((NWindows - cwp) % NWindows) * 2;
-    if (index < 0)
-        panic("Index less than 0. cwp=%d nwin=%d\n", cwp, NWindows);
-    offset[Outputs] = FrameOffset + (index * RegsPerFrame);
-    offset[Locals] = FrameOffset + ((index+1) * RegsPerFrame);
-    offset[Inputs] = FrameOffset +
-        (((index+2) % (NWindows * 2)) * RegsPerFrame);
-    regView[Outputs] = regSegments[index];
-    regView[Locals] = regSegments[index+1];
-    regView[Inputs] = regSegments[(index+2) % (NWindows * 2)];
-
-    DPRINTF(RegisterWindows, "Changed the CWP value to %d\n", cwp);
-}
-
 void IntRegFile::setGlobals(int gl)
 {
     DPRINTF(RegisterWindows, "Now using %d globals\n", gl);
diff -r fec76fcabf67 -r 504e13722ce9 src/arch/sparc/intregfile.hh
--- a/src/arch/sparc/intregfile.hh      Wed Feb 25 10:21:33 2009 -0800
+++ b/src/arch/sparc/intregfile.hh      Wed Feb 25 10:21:40 2009 -0800
@@ -102,11 +102,6 @@
         void unserialize(Checkpoint *cp, const std::string &section);
 
       protected:
-        //This doesn't effect the actual CWP register.
-        //It's purpose is to adjust the view of the register file
-        //to what it would be if CWP = cwp.
-        void setCWP(int cwp);
-
         void setGlobals(int gl);
     };
 }
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to