summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-05-06 11:13:11 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-08-04 15:32:44 +0200
commitb9ecc56a3c580c85773fdc98426c7445f0f01cf9 (patch)
tree3eefec4bd7fefdc6a57167b1fb2447da33a57b7f
parent873519aadc4dbb8c30ade64a603ba1b0c64a8a03 (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;
}