aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/helper.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-21 11:13:51 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-21 11:13:51 +0000
commit415fc9061894a04e7a5a01fcafe3745b9064a93a (patch)
tree221aedcd3b87a75d2698f0f3beea5593a6f2f9f4 /target-sparc/helper.c
parent2f43e00ea77694bdc21486b65ec1bd1ca714a39a (diff)
downloadqemu-415fc9061894a04e7a5a01fcafe3745b9064a93a.zip
qemu-415fc9061894a04e7a5a01fcafe3745b9064a93a.tar.gz
qemu-415fc9061894a04e7a5a01fcafe3745b9064a93a.tar.bz2
Turn MMUs and caches off on reset
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6636 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/helper.c')
-rw-r--r--target-sparc/helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-sparc/helper.c b/target-sparc/helper.c
index 1a06525..7a2ac21 100644
--- a/target-sparc/helper.c
+++ b/target-sparc/helper.c
@@ -663,6 +663,7 @@ void cpu_reset(CPUSPARCState *env)
env->pstate = PS_PRIV;
env->hpstate = HS_PRIV;
env->tsptr = &env->ts[env->tl & MAXTL_MASK];
+ env->lsu = 0;
#else
env->mmuregs[0] &= ~(MMU_E | MMU_NF);
env->mmuregs[0] |= env->def->mmu_bm;