SPARC: Get rid of the setCWP function.
This commit is contained in:
parent
88ee7d4c32
commit
f41ce6b5e9
|
@ -73,7 +73,6 @@ IntRegFile::IntRegFile()
|
||||||
{
|
{
|
||||||
offset[Globals] = 0;
|
offset[Globals] = 0;
|
||||||
regView[Globals] = regGlobals[0];
|
regView[Globals] = regGlobals[0];
|
||||||
setCWP(0);
|
|
||||||
clear();
|
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)
|
void IntRegFile::setGlobals(int gl)
|
||||||
{
|
{
|
||||||
DPRINTF(RegisterWindows, "Now using %d globals\n", gl);
|
DPRINTF(RegisterWindows, "Now using %d globals\n", gl);
|
||||||
|
|
|
@ -102,11 +102,6 @@ namespace SparcISA
|
||||||
void unserialize(Checkpoint *cp, const std::string §ion);
|
void unserialize(Checkpoint *cp, const std::string §ion);
|
||||||
|
|
||||||
protected:
|
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);
|
void setGlobals(int gl);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue