summaryrefslogtreecommitdiff
path: root/src/arch/sparc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-02-25 10:21:46 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-02-25 10:21:46 -0800
commit9d5b6e377ffca79e0dabe3fb63215d2f51a4eb7b (patch)
treeae22c0aa64401542906822f1832d399abb462ee4 /src/arch/sparc
parentf41ce6b5e9d606826c9519cf355f992f53bb4dbf (diff)
downloadgem5-9d5b6e377ffca79e0dabe3fb63215d2f51a4eb7b.tar.xz
SPARC: Get rid of the setGlobals function.
Diffstat (limited to 'src/arch/sparc')
-rw-r--r--src/arch/sparc/intregfile.cc13
-rw-r--r--src/arch/sparc/intregfile.hh3
2 files changed, 0 insertions, 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 &section);
-
- protected:
- void setGlobals(int gl);
};
}