From: Gabe Black Date: Wed, 25 Feb 2009 18:21:40 +0000 (-0800) Subject: SPARC: Get rid of the setCWP function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f41ce6b5e9d606826c9519cf355f992f53bb4dbf;p=gem5.git SPARC: Get rid of the setCWP function. --- 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 §ion); 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); }; }