summaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-01-28 00:01:00 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-01-28 00:01:00 +0000
commitbb05683b1271517b5f78aff1890e37f0d27b4d2d (patch)
treeaddfd5fbf71d23942c06defb5881e2e3845161c1 /target-sparc
parent662f3c86ecf03979feae8ffdba415ff23cffabdc (diff)
flush TLBs at cpu reset
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1248 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/translate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index dc7e6dbf6..7673bf2dd 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -1553,6 +1553,7 @@ extern int ram_size;
void cpu_reset(CPUSPARCState *env)
{
memset(env, 0, sizeof(*env));
+ tlb_flush(env, 1);
env->cwp = 0;
env->wim = 1;
env->regwptr = env->regbase + (env->cwp * 16);