]> Git Repo - qemu.git/commitdiff
target-arm/helper.c: tb_flush() on CPU reset
authorPeter Maydell <[email protected]>
Wed, 1 Feb 2012 17:23:04 +0000 (17:23 +0000)
committerAndrzej Zaborowski <[email protected]>
Fri, 17 Feb 2012 07:34:43 +0000 (08:34 +0100)
Since target-arm has some CPUState fields for which we take the approach
of baking assumptions about them into translated code and then calling
tb_flush() when the fields change, we must also tb_flush on CPU reset,
because reset is a change of those fields.

Signed-off-by: Peter Maydell <[email protected]>
Signed-off-by: Andrzej Zaborowski <[email protected]>
target-arm/helper.c

index 34b226ecf0382cdac9d6c67f7473ca2cdf2dc768..49293724897a632e4f61f0c2aee27829276e3f9a 100644 (file)
@@ -344,6 +344,11 @@ void cpu_reset(CPUARMState *env)
     set_float_detect_tininess(float_tininess_before_rounding,
                               &env->vfp.standard_fp_status);
     tlb_flush(env, 1);
+    /* Reset is a state change for some CPUState fields which we
+     * bake assumptions about into translated code, so we need to
+     * tb_flush().
+     */
+    tb_flush(env);
 }
 
 static int vfp_gdb_get_reg(CPUState *env, uint8_t *buf, int reg)
This page took 0.024166 seconds and 4 git commands to generate.