From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwZou-0002bT-A5 for qemu-devel@nongnu.org; Thu, 15 May 2008 05:32:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwZos-0002al-HD for qemu-devel@nongnu.org; Thu, 15 May 2008 05:32:15 -0400 Received: from [199.232.76.173] (port=50343 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwZos-0002ae-8G for qemu-devel@nongnu.org; Thu, 15 May 2008 05:32:14 -0400 Received: from smtp.syd.people.net.au ([218.214.225.98]:41718) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JwZor-0002kk-9k for qemu-devel@nongnu.org; Thu, 15 May 2008 05:32:14 -0400 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id 5E40BACA78 for ; Thu, 15 May 2008 19:32:04 +1000 (EST) Date: Thu, 15 May 2008 19:32:04 +1000 From: Erik de Castro Lopo Message-Id: <20080515193204.cff99c8a.mle+tools@mega-nerd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Thu__15_May_2008_19_32_04_+1000_7TK.84S90b3g8ZJT" Subject: [Qemu-devel] Add handling of edge triggered interrupts in function pic_irq_request. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --Multipart=_Thu__15_May_2008_19_32_04_+1000_7TK.84S90b3g8ZJT Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit This fixes a regression that prevents Win XP64 from installing and running under Qemu. The original breakage happened in the transition fron SVN revision 3371 to 3372. --- hw/pc.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) --Multipart=_Thu__15_May_2008_19_32_04_+1000_7TK.84S90b3g8ZJT Content-Type: text/x-patch; name="459fb8b7d4fadac4c7b35ddfcfc9fae0edc1e6f6.diff" Content-Disposition: attachment; filename="459fb8b7d4fadac4c7b35ddfcfc9fae0edc1e6f6.diff" Content-Transfer-Encoding: 7bit diff --git a/hw/pc.c b/hw/pc.c index c92384c..65ea5c6 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -118,8 +118,10 @@ static void pic_irq_request(void *opaque, int irq, int level) { CPUState *env = first_cpu; - if (!level) + if (!level) { + cpu_reset_interrupt(env, CPU_INTERRUPT_HARD); return; + } while (env) { if (apic_accept_pic_intr(env)) --Multipart=_Thu__15_May_2008_19_32_04_+1000_7TK.84S90b3g8ZJT--