]> Git Repo - qemu.git/commitdiff
s390x/tcg: initialize machine check queue
authorCornelia Huck <[email protected]>
Fri, 29 Sep 2017 14:49:59 +0000 (16:49 +0200)
committerCornelia Huck <[email protected]>
Fri, 6 Oct 2017 08:53:02 +0000 (10:53 +0200)
Just as for external interrupts and I/O interrupts, we need to
initialize mchk_index during cpu reset.

Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
target/s390x/cpu.c

index 4e1823a3e0a1d84ad7e83af91c1325fc96a63d5d..3fdf9bae70693d4bd3741af6e38d33471d517e02 100644 (file)
@@ -111,6 +111,7 @@ static void s390_cpu_initial_reset(CPUState *s)
     for (i = 0; i < ARRAY_SIZE(env->io_index); i++) {
         env->io_index[i] = -1;
     }
+    env->mchk_index = -1;
 
     /* tininess for underflow is detected before rounding */
     set_float_detect_tininess(float_tininess_before_rounding,
@@ -148,6 +149,7 @@ static void s390_cpu_full_reset(CPUState *s)
     for (i = 0; i < ARRAY_SIZE(env->io_index); i++) {
         env->io_index[i] = -1;
     }
+    env->mchk_index = -1;
 
     /* tininess for underflow is detected before rounding */
     set_float_detect_tininess(float_tininess_before_rounding,
This page took 0.026327 seconds and 4 git commands to generate.