aboutsummaryrefslogtreecommitdiff
path: root/hw/timer/mc146818rtc.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-08-27 17:54:52 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-08-27 17:54:52 +0200
commit172dbc52b39c86d7569af5251cca78cb2c74c912 (patch)
treeae6da4b6d402fb0c97c3cfaf8e5003b9aabf4cf5 /hw/timer/mc146818rtc.c
parent7b458bfd12a71b3da6b531daedc417492c9334e0 (diff)
downloadqemu-172dbc52b39c86d7569af5251cca78cb2c74c912.zip
qemu-172dbc52b39c86d7569af5251cca78cb2c74c912.tar.gz
qemu-172dbc52b39c86d7569af5251cca78cb2c74c912.tar.bz2
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>
Diffstat (limited to 'hw/timer/mc146818rtc.c')
-rw-r--r--hw/timer/mc146818rtc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c
index 233fc70..4df650f 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
}