summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-02-25 10:21:40 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-02-25 10:21:40 -0800
commitf41ce6b5e9d606826c9519cf355f992f53bb4dbf (patch)
treef581f4c59754777e289ef5ab4c24a7e3d2922780
parent88ee7d4c32854608a9887ecbd60139dc20ab1974 (diff)
downloadgem5-f41ce6b5e9d606826c9519cf355f992f53bb4dbf.tar.xz
SPARC: Get rid of the setCWP function.
-rw-r--r--src/arch/sparc/intregfile.cc20
-rw-r--r--src/arch/sparc/intregfile.hh5
2 files changed, 0 insertions, 25 deletions
diff --git a/src/arch/sparc/intregfile.cc b/src/arch/sparc/intregfile.cc
index 6419f0f93..28299c9b3 100644
--- a/src/arch/sparc/intregfile.cc
+++ b/src/arch/sparc/intregfile.cc
@@ -73,7 +73,6 @@ IntRegFile::IntRegFile()
{
offset[Globals] = 0;
regView[Globals] = regGlobals[0];
- setCWP(0);
clear();
}
@@ -119,25 +118,6 @@ void IntRegFile::setReg(int intReg, const IntReg &val)
} */
}
-//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 --git a/src/arch/sparc/intregfile.hh b/src/arch/sparc/intregfile.hh
index 83ef1d17b..0d1fe413e 100644
--- a/src/arch/sparc/intregfile.hh
+++ b/src/arch/sparc/intregfile.hh
@@ -102,11 +102,6 @@ namespace SparcISA
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);
};
}