cputlb owns the TLB entries and knows how to safely update them in
MTTCG.
Signed-off-by: Alex Bennée <address@hidden>
---
target-arm/cpu.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/target-arm/cpu.c b/target-arm/cpu.c
index 1b9540e..ff8c594 100644
--- a/target-arm/cpu.c
+++ b/target-arm/cpu.c
@@ -121,7 +121,13 @@ static void arm_cpu_reset(CPUState *s)
acc->parent_reset(s);
+#ifdef CONFIG_SOFTMMU
+ memset(env, 0, offsetof(CPUARMState, tlb_table));
+ tlb_flush(s, 0);
+#else
memset(env, 0, offsetof(CPUARMState, features));
+#endif
+