summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-05-06 11:13:11 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-11-01 10:10:22 +0100
commitfbdaa0e4715e4b7311555eaa0f80f11f18be0c57 (patch)
tree99c8bee33a8ead668704ec4b4ad83f6ba8acd24a
parent0b67979222d11758ccf3ae25a59e1bda03218b74 (diff)
switch stdvga to pci vgabios
-rw-r--r--hw/vga-pci.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/vga-pci.c b/hw/vga-pci.c
index 2315f70bc..eef0e3c73 100644
--- a/hw/vga-pci.c
+++ b/hw/vga-pci.c
@@ -103,11 +103,10 @@ static int pci_vga_initfn(PCIDevice *dev)
bios_total_size <<= 1;
pci_register_bar(&d->dev, PCI_ROM_SLOT, bios_total_size,
PCI_BASE_ADDRESS_MEM_PREFETCH, vga_map);
+ } else {
+ if (dev->romfile == NULL)
+ dev->romfile = qemu_strdup("vgabios-stdvga.bin");
}
-
- vga_init_vbe(s);
- /* ROM BIOS */
- rom_add_vga(VGABIOS_FILENAME);
return 0;
}