From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMfZp-0006nx-Iq for qemu-devel@nongnu.org; Wed, 27 Aug 2014 11:56:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMfZg-0003eu-E4 for qemu-devel@nongnu.org; Wed, 27 Aug 2014 11:56:01 -0400 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:54298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMfZg-0003em-6b for qemu-devel@nongnu.org; Wed, 27 Aug 2014 11:55:52 -0400 Received: by mail-we0-f170.google.com with SMTP id w62so434568wes.29 for ; Wed, 27 Aug 2014 08:55:50 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 27 Aug 2014 17:55:43 +0200 Message-Id: <1409154943-28594-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH] mc146818rtc: reinitialize irq_reinject_on_ack_count on reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: dgilbert@redhat.com, pavel.dovgaluk@ispras.ru This field was forgotten, and it makes the state after reset non-deterministic. Signed-off-by: Paolo Bonzini --- hw/timer/mc146818rtc.c | 1 + 1 file changed, 1 insertion(+) 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 } -- 1.8.3.1