diff options
| author | Cornelia Huck <cohuck@redhat.com> | 2017-09-29 16:49:59 +0200 |
|---|---|---|
| committer | Cornelia Huck <cohuck@redhat.com> | 2017-10-06 10:53:02 +0200 |
| commit | 8986db4922cf5b810b775c135d74a75290840660 (patch) | |
| tree | fe022fe9ec84d5ffb08d9c4ac83ba2911ebfae62 | |
| parent | 7aa4d85d2962a072931657bee964113727ebf0c8 (diff) | |
| download | focaccia-qemu-8986db4922cf5b810b775c135d74a75290840660.tar.gz focaccia-qemu-8986db4922cf5b810b775c135d74a75290840660.zip | |
s390x/tcg: initialize machine check queue
Just as for external interrupts and I/O interrupts, we need to initialize mchk_index during cpu reset. Reviewed-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
| -rw-r--r-- | target/s390x/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c index 4e1823a3e0..3fdf9bae70 100644 --- a/target/s390x/cpu.c +++ b/target/s390x/cpu.c @@ -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, |