SPARC: Get rid of the setCWP function.

This commit is contained in:
Gabe Black 2009-02-25 10:21:40 -08:00
parent 88ee7d4c32
commit f41ce6b5e9
2 changed files with 0 additions and 25 deletions

View file

@ -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);

View file

@ -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);
};
}