Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVQkC-0000dh-Vy for qemu-devel@nongnu.org; Tue, 19 Aug 2008 08:55:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVQkB-0000dJ-LC for qemu-devel@nongnu.org; Tue, 19 Aug 2008 08:55:28 -0400 Received: from [199.232.76.173] (port=57031 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVQkB-0000dG-H3 for qemu-devel@nongnu.org; Tue, 19 Aug 2008 08:55:27 -0400 Received: from savannah.gnu.org ([199.232.41.3]:54777 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 1KVQkB-0003yj-D4 for qemu-devel@nongnu.org; Tue, 19 Aug 2008 08:55:27 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KVQk7-0002Ji-3x for qemu-devel@nongnu.org; Tue, 19 Aug 2008 12:55:23 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KVQk6-0002JW-LI for qemu-devel@nongnu.org; Tue, 19 Aug 2008 12:55:22 +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: Tue, 19 Aug 2008 12:55:22 +0000 Subject: [Qemu-devel] [5026] i386: fix isapc machine 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: 5026 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5026 Author: aurel32 Date: 2008-08-19 12:55:20 +0000 (Tue, 19 Aug 2008) Log Message: ----------- i386: fix isapc machine - cirrus vga: enable graphic console - pc: don't use apic for interrupts on ISA machine Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/hw/cirrus_vga.c trunk/hw/pc.c Modified: trunk/hw/cirrus_vga.c =================================================================== --- trunk/hw/cirrus_vga.c 2008-08-18 18:00:31 UTC (rev 5025) +++ trunk/hw/cirrus_vga.c 2008-08-19 12:55:20 UTC (rev 5026) @@ -3228,6 +3228,8 @@ vga_common_init((VGAState *)s, ds, vga_ram_base, vga_ram_offset, vga_ram_size); cirrus_init_common(s, CIRRUS_ID_CLGD5430, 0); + s->console = graphic_console_init(s->ds, s->update, s->invalidate, + s->screen_dump, s->text_update, s); /* XXX ISA-LFB support */ } Modified: trunk/hw/pc.c =================================================================== --- trunk/hw/pc.c 2008-08-18 18:00:31 UTC (rev 5025) +++ trunk/hw/pc.c 2008-08-19 12:55:20 UTC (rev 5026) @@ -121,10 +121,14 @@ if (!level) return; - while (env) { - if (apic_accept_pic_intr(env)) - apic_local_deliver(env, APIC_LINT0); - env = env->next_cpu; + if (env->apic_state) { + 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); } }