Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KW0dL-0006xi-FG for qemu-devel@nongnu.org; Wed, 20 Aug 2008 23:14:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KW0dK-0006xJ-Jg for qemu-devel@nongnu.org; Wed, 20 Aug 2008 23:14:46 -0400 Received: from [199.232.76.173] (port=37186 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KW0dK-0006xG-HM for qemu-devel@nongnu.org; Wed, 20 Aug 2008 23:14:46 -0400 Received: from savannah.gnu.org ([199.232.41.3]:42410 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KW0dJ-0004Ge-N0 for qemu-devel@nongnu.org; Wed, 20 Aug 2008 23:14:46 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KW0dG-0004tD-6S for qemu-devel@nongnu.org; Thu, 21 Aug 2008 03:14:42 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KW0dF-0004t9-S8 for qemu-devel@nongnu.org; Thu, 21 Aug 2008 03:14:41 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Thu, 21 Aug 2008 03:14:41 +0000 Subject: [Qemu-devel] [5040] De-assert ISA PIC IRQs properly 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 Revision: 5040 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5040 Author: aurel32 Date: 2008-08-21 03:14:41 +0000 (Thu, 21 Aug 2008) Log Message: ----------- De-assert ISA PIC IRQs properly [ Taking latest isapc changes into account. ] In case the PIC IRQ gets de-asserted on an isapc machine, we also have to reset CPU_INTERRUPT_HARD. This is what older qemu (before the routing-through-APIC changes) used to do as well. Signed-off-by: Jan Kiszka Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/hw/pc.c Modified: trunk/hw/pc.c =================================================================== --- trunk/hw/pc.c 2008-08-21 03:14:29 UTC (rev 5039) +++ trunk/hw/pc.c 2008-08-21 03:14:41 UTC (rev 5040) @@ -118,17 +118,19 @@ { CPUState *env = first_cpu; - if (!level) - return; - if (env->apic_state) { + if (!level) + return; while (env) { if (apic_accept_pic_intr(env)) apic_local_deliver(env, APIC_LINT0); env = env->next_cpu; } } else { - cpu_interrupt(env, CPU_INTERRUPT_HARD); + if (level) + cpu_interrupt(env, CPU_INTERRUPT_HARD); + else + cpu_reset_interrupt(env, CPU_INTERRUPT_HARD); } }