]> Git Repo - qemu.git/commitdiff
target-lm32: flush tlb after clearing env
authorMichael Walle <[email protected]>
Tue, 26 Feb 2013 18:51:52 +0000 (19:51 +0100)
committerMichael Walle <[email protected]>
Mon, 18 Mar 2013 18:40:34 +0000 (19:40 +0100)
The tlb data is stored within the CPU env. Therefore, the initialization
has to be done after we clear the environment. Otherwise the tlb will have
a valid entry for address 0x0.

Signed-off-by: Michael Walle <[email protected]>
target-lm32/cpu.c

index bbb7fbf7680c50360724291dc419a07703ffa634..23c05ddbed5a10612fdc6e38c9d3978a67c761cd 100644 (file)
@@ -36,10 +36,10 @@ static void lm32_cpu_reset(CPUState *s)
 
     lcc->parent_reset(s);
 
-    tlb_flush(env, 1);
-
     /* reset cpu state */
     memset(env, 0, offsetof(CPULM32State, breakpoints));
+
+    tlb_flush(env, 1);
 }
 
 static void lm32_cpu_realizefn(DeviceState *dev, Error **errp)
This page took 0.026034 seconds and 4 git commands to generate.