From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN0On-0001dN-Oo for qemu-devel@nongnu.org; Thu, 28 Aug 2014 10:10:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XN0Oc-0001ER-Ba for qemu-devel@nongnu.org; Thu, 28 Aug 2014 10:10:01 -0400 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:45892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN0Oc-0001E8-5b for qemu-devel@nongnu.org; Thu, 28 Aug 2014 10:09:50 -0400 Received: by mail-we0-f172.google.com with SMTP id q59so840770wes.3 for ; Thu, 28 Aug 2014 07:09:49 -0700 (PDT) Received: from playground.station (net-37-116-212-108.cust.vodafonedsl.it. [37.116.212.108]) by mx.google.com with ESMTPSA id mv14sm35947136wic.20.2014.08.28.07.09.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Aug 2014 07:09:48 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 28 Aug 2014 16:09:13 +0200 Message-Id: <1409234953-20742-15-git-send-email-pbonzini@redhat.com> In-Reply-To: <1409234953-20742-1-git-send-email-pbonzini@redhat.com> References: <1409234953-20742-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 14/14] 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 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