Skip to contentSkip to conversation

mc146818rtc: reinitialize irq_reinject_on_ack_count on reset

PATCH New Paolo Bonzini 1 participant 1 message Aug 27, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mc146818rtc: reinitialize irq_reinject_on_ack_count on reset

This field was forgotten, and it makes the state after reset non-deterministic.

---
 hw/timer/mc146818rtc.c | 1 +
 1 file changed, 1 insertion(+)
hw/timer/mc146818rtc.c +1 -0
index 233fc70..4df650f 100644
@@ -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
 }
Signature · 1 line
1.8.3.1