summaryrefslogtreecommitdiff
path: root/src/sim
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/sim
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/sim')
-rw-r--r--src/sim/syscall_emul.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc
index 9e53645f5..779e567f5 100644
--- a/src/sim/syscall_emul.cc
+++ b/src/sim/syscall_emul.cc
@@ -810,7 +810,7 @@ cloneFunc(SyscallDesc *desc, int callnum, LiveProcess *process,
ctc->setMiscReg(MISCREG_CWP, 0);
ctc->setIntReg(NumIntArchRegs + 7, 0);
ctc->setMiscRegNoEffect(MISCREG_TL, 0);
- ctc->setMiscRegNoEffect(MISCREG_ASI, ASI_PRIMARY);
+ ctc->setMiscReg(MISCREG_ASI, ASI_PRIMARY);
for (int y = 8; y < 32; y++)
ctc->setIntReg(y, tc->readIntReg(y));