[5026] i386: fix isapc machine
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
Modified Paths:
--------------
trunk/hw/cirrus_vga.c
trunk/hw/pc.c
Modified: trunk/hw/cirrus_vga.c
===================================================================
hw/cirrus_vga.c +2 -0
@@ -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
===================================================================
hw/pc.c +8 -4
@@ -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 ); } }
Quoted 12 lines · Aurelien Jarno
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
...
Quoted 12 lines
Modified:
trunk/hw/pc.c
===================================================================hw/pc.c +0
-4@@ -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;
hw/pc.c line 133
Quoted 10 lines
hw/pc.c +8
-0+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 ); } }
Considering our recent experience with the APIC path, and also when looking at old qemu versions, just asserting CPU_INTERRUPT_HARD won't be enough. We also need cpu_reset_interrupt in the (!level) case. Will post a patch, along with a rebased version for the APIC fix.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux