summary refs log tree commit diff stats
path: root/target-sparc/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-sparc/cpu.c')
-rw-r--r--target-sparc/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/cpu.c b/target-sparc/cpu.c
index 8465a0b18a..d9f37e9b6a 100644
--- a/target-sparc/cpu.c
+++ b/target-sparc/cpu.c
@@ -34,7 +34,7 @@ static void sparc_cpu_reset(CPUState *s)
     scc->parent_reset(s);
 
     memset(env, 0, offsetof(CPUSPARCState, version));
-    tlb_flush(env, 1);
+    tlb_flush(s, 1);
     env->cwp = 0;
 #ifndef TARGET_SPARC64
     env->wim = 1;