summaryrefslogtreecommitdiff
path: root/src/arch/sparc/isa.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2013-01-04 18:09:45 -0600
committerGabe Black <gblack@eecs.umich.edu>2013-01-04 18:09:45 -0600
commit63b10907ef822aa6873d7f4f4d1ee849a188b2c4 (patch)
tree5b1874709929d6f330cb18aacc75c2a13e753f21 /src/arch/sparc/isa.cc
parenta83e74b37adc26afe4e69e59ed0092dafa63fc09 (diff)
downloadgem5-63b10907ef822aa6873d7f4f4d1ee849a188b2c4.tar.xz
SPARC: Keep a copy of the current ASI in the decoder.
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/arch/sparc/isa.cc')
-rw-r--r--src/arch/sparc/isa.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/sparc/isa.cc b/src/arch/sparc/isa.cc
index 291e25cec..4cfb93b0d 100644
--- a/src/arch/sparc/isa.cc
+++ b/src/arch/sparc/isa.cc
@@ -549,6 +549,9 @@ ISA::setMiscReg(int miscReg, MiscReg val, ThreadContext * tc)
MiscReg new_val = val;
switch (miscReg) {
+ case MISCREG_ASI:
+ tc->getDecodePtr()->setContext(val);
+ break;
case MISCREG_STICK:
case MISCREG_TICK:
// stick and tick are same thing on niagra