projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a962f8
)
Small touchups to SPARC
author
Gabe Black
<gblack@eecs.umich.edu>
Thu, 6 Apr 2006 19:14:08 +0000
(15:14 -0400)
committer
Gabe Black
<gblack@eecs.umich.edu>
Thu, 6 Apr 2006 19:14:08 +0000
(15:14 -0400)
arch/sparc/regfile.hh:
Added debug output to the setAltGlobals function.
--HG--
extra : convert_revision :
b5ed3ff6d6f30e840c2488d846658dadedb59869
arch/sparc/regfile.hh
patch
|
blob
|
history
diff --git
a/arch/sparc/regfile.hh
b/arch/sparc/regfile.hh
index 6186e3e453de3560e6fe1ae0cb14a6c5b86d58d5..566cd1d1f4906a81483c57b19dac149e9dce7b10 100644
(file)
--- 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");
}