mirror of https://gitlab.com/qemu-project/qemu
mc146818rtc: reinitialize irq_reinject_on_ack_count on reset
This field was forgotten, and it makes the state after reset non-deterministic. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
7b458bfd12
commit
172dbc52b3
|
@ -792,6 +792,7 @@ static void rtc_reset(void *opaque)
|
||||||
#ifdef TARGET_I386
|
#ifdef TARGET_I386
|
||||||
if (s->lost_tick_policy == LOST_TICK_POLICY_SLEW) {
|
if (s->lost_tick_policy == LOST_TICK_POLICY_SLEW) {
|
||||||
s->irq_coalesced = 0;
|
s->irq_coalesced = 0;
|
||||||
|
s->irq_reinject_on_ack_count = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue