From: Gabe Black Date: Wed, 25 Feb 2009 18:21:46 +0000 (-0800) Subject: SPARC: Get rid of the setGlobals function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d5b6e377ffca79e0dabe3fb63215d2f51a4eb7b;p=gem5.git SPARC: Get rid of the setGlobals function. --- diff --git a/src/arch/sparc/intregfile.cc b/src/arch/sparc/intregfile.cc index 28299c9b3..26637ddad 100644 --- a/src/arch/sparc/intregfile.cc +++ b/src/arch/sparc/intregfile.cc @@ -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); diff --git a/src/arch/sparc/intregfile.hh b/src/arch/sparc/intregfile.hh index 0d1fe413e..ce9bcadb6 100644 --- a/src/arch/sparc/intregfile.hh +++ b/src/arch/sparc/intregfile.hh @@ -100,9 +100,6 @@ namespace SparcISA void serialize(std::ostream &os); void unserialize(Checkpoint *cp, const std::string §ion); - - protected: - void setGlobals(int gl); }; }