From 63b10907ef822aa6873d7f4f4d1ee849a188b2c4 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 4 Jan 2013 18:09:45 -0600 Subject: SPARC: Keep a copy of the current ASI in the decoder. Committed by: Nilay Vaish --- src/arch/sparc/isa.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/arch/sparc/isa.cc') 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 -- cgit v1.2.3