From: Paolo Bonzini Date: Wed, 27 Aug 2014 15:54:52 +0000 (+0200) Subject: mc146818rtc: reinitialize irq_reinject_on_ack_count on reset X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=172dbc52b39c86d7569af5251cca78cb2c74c912;p=qemu.git 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 --- diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c index 233fc70d67..4df650f450 100644 --- a/hw/timer/mc146818rtc.c +++ b/hw/timer/mc146818rtc.c @@ -792,6 +792,7 @@ static void rtc_reset(void *opaque) #ifdef TARGET_I386 if (s->lost_tick_policy == LOST_TICK_POLICY_SLEW) { s->irq_coalesced = 0; + s->irq_reinject_on_ack_count = 0; } #endif }