SPARC: Get rid of the setGlobals function.

This commit is contained in:
Gabe Black 2009-02-25 10:21:46 -08:00
parent f41ce6b5e9
commit 9d5b6e377f
2 changed files with 0 additions and 16 deletions

View file

@ -118,19 +118,6 @@ void IntRegFile::setReg(int intReg, const IntReg &val)
} */
}
void IntRegFile::setGlobals(int gl)
{
DPRINTF(RegisterWindows, "Now using %d globals\n", gl);
regView[Globals] = regGlobals[gl];
offset[Globals] = RegGlobalOffset + gl * RegsPerFrame;
if (regView[Globals] == regView[Inputs] ||
regView[Globals] == regView[Locals] ||
regView[Globals] == regView[Outputs] )
panic("Two register arrays set to the same thing!\n");
}
void IntRegFile::serialize(std::ostream &os)
{
SERIALIZE_ARRAY(regs, NumIntRegs);

View file

@ -100,9 +100,6 @@ namespace SparcISA
void serialize(std::ostream &os);
void unserialize(Checkpoint *cp, const std::string &section);
protected:
void setGlobals(int gl);
};
}