From 9d5b6e377ffca79e0dabe3fb63215d2f51a4eb7b Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 25 Feb 2009 10:21:46 -0800 Subject: [PATCH] SPARC: Get rid of the setGlobals function. --- src/arch/sparc/intregfile.cc | 13 ------------- src/arch/sparc/intregfile.hh | 3 --- 2 files changed, 16 deletions(-) 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); }; } -- 2.30.2