Small touchups to SPARC

arch/sparc/regfile.hh:
    Added debug output to the setAltGlobals function.

--HG--
extra : convert_revision : b5ed3ff6d6f30e840c2488d846658dadedb59869
This commit is contained in:
Gabe Black 2006-04-06 15:14:08 -04:00
parent 6a962f8343
commit bb4c2fba25

View file

@ -137,6 +137,8 @@ namespace SparcISA
void setAltGlobals(bool useAlt) void setAltGlobals(bool useAlt)
{ {
DPRINTF(Sparc, "Now using %s globals",
useAlt ? "alternate" : "regular");
regView[Globals] = useAlt ? altGlobals : regGlobals; regView[Globals] = useAlt ? altGlobals : regGlobals;
offset[Globals] = useAlt ? AltGlobalOffset : RegGlobalOffset; offset[Globals] = useAlt ? AltGlobalOffset : RegGlobalOffset;
} }
@ -782,8 +784,10 @@ namespace SparcISA
{ {
case CONTEXT_CWP: case CONTEXT_CWP:
intRegFile.setCWP(val.reg); intRegFile.setCWP(val.reg);
break;
case CONTEXT_GLOBALS: case CONTEXT_GLOBALS:
intRegFile.setAltGlobals(val.altGlobals); intRegFile.setAltGlobals(val.altGlobals);
break;
default: default:
panic("Tried to set illegal context parameter in the SPARC regfile.\n"); panic("Tried to set illegal context parameter in the SPARC regfile.\n");
} }