summaryrefslogtreecommitdiff
path: root/arch/sparc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-04-06 15:14:08 -0400
committerGabe Black <gblack@eecs.umich.edu>2006-04-06 15:14:08 -0400
commitbb4c2fba259d80e64edace509dc16f9a2ff2d2a6 (patch)
tree601b19c3d9df149555360cddd060aa95c9ddf624 /arch/sparc
parent6a962f8343d0e7f138baa4034633c986eecc9edf (diff)
downloadgem5-bb4c2fba259d80e64edace509dc16f9a2ff2d2a6.tar.xz
Small touchups to SPARC
arch/sparc/regfile.hh: Added debug output to the setAltGlobals function. --HG-- extra : convert_revision : b5ed3ff6d6f30e840c2488d846658dadedb59869
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/regfile.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/regfile.hh b/arch/sparc/regfile.hh
index 6186e3e45..566cd1d1f 100644
--- a/arch/sparc/regfile.hh
+++ b/arch/sparc/regfile.hh
@@ -137,6 +137,8 @@ namespace SparcISA
void setAltGlobals(bool useAlt)
{
+ DPRINTF(Sparc, "Now using %s globals",
+ useAlt ? "alternate" : "regular");
regView[Globals] = useAlt ? altGlobals : regGlobals;
offset[Globals] = useAlt ? AltGlobalOffset : RegGlobalOffset;
}
@@ -782,8 +784,10 @@ namespace SparcISA
{
case CONTEXT_CWP:
intRegFile.setCWP(val.reg);
+ break;
case CONTEXT_GLOBALS:
intRegFile.setAltGlobals(val.altGlobals);
+ break;
default:
panic("Tried to set illegal context parameter in the SPARC regfile.\n");
}