All of lore.kernel.org
 help / color / mirror / Atom feed
From: Erik de Castro Lopo <mle+tools@mega-nerd.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Add handling of edge triggered interrupts in function pic_irq_request.
Date: Thu, 15 May 2008 19:32:04 +1000	[thread overview]
Message-ID: <20080515193204.cff99c8a.mle+tools@mega-nerd.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 244 bytes --]


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(-)

[-- Attachment #2: 459fb8b7d4fadac4c7b35ddfcfc9fae0edc1e6f6.diff --]
[-- Type: text/x-patch, Size: 386 bytes --]

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))


             reply	other threads:[~2008-05-15  9:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-15  9:32 Erik de Castro Lopo [this message]
2008-05-15 10:37 ` [Qemu-devel] Add handling of edge triggered interrupts in function pic_irq_request Erik de Castro Lopo
2008-05-15 11:27   ` [Qemu-devel] [Patch] " Erik de Castro Lopo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080515193204.cff99c8a.mle+tools@mega-nerd.com \
    --to=mle+tools@mega-nerd.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.