Skip to content

Commit

Permalink
s390x/tcg: initialize machine check queue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cohuck committed Oct 6, 2017
1 parent 7aa4d85 commit 8986db4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions target/s390x/cpu.c
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8986db4

Please sign in to comment.