qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Add handling of edge triggered interrupts in function pic_irq_request.
@ 2008-05-15  9:32 Erik de Castro Lopo
  2008-05-15 10:37 ` Erik de Castro Lopo
  0 siblings, 1 reply; 3+ messages in thread
From: Erik de Castro Lopo @ 2008-05-15  9:32 UTC (permalink / raw)
  To: qemu-devel

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-15 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-15  9:32 [Qemu-devel] Add handling of edge triggered interrupts in function pic_irq_request Erik de Castro Lopo
2008-05-15 10:37 ` Erik de Castro Lopo
2008-05-15 11:27   ` [Qemu-devel] [Patch] " Erik de Castro Lopo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).