When running qemu with -std-vga switch using coreboot, qemu's screen
window will disappear. It's caused by no vga initialization for
std-vga card. The patch below adds a driver structure to make std-vga
card work.

Index: src/mainboard/emulation/qemu-x86/mainboard.c
===================================================================
--- src/mainboard/emulation/qemu-x86/mainboard.c        (revision 3789)
+++ src/mainboard/emulation/qemu-x86/mainboard.c        (working copy)
@@ -35,6 +35,12 @@
        .device = 0x00b8,
 };

+static const struct pci_driver vga_driver_stdvga __pci_driver = {
+       .ops = &vga_operations,
+       .vendor = 0x1234,
+       .device = 0x1111,
+};
+
 struct chip_operations mainboard_emulation_qemu_x86_ops = {
        CHIP_NAME("QEMU Mainboard")
 };

Signed-off-by: Aaron Lwe <[EMAIL PROTECTED]>

-Aaron

--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to