carlwgeorge / rpms / qemu

Forked from rpms/qemu a year ago
Clone
a81953e
From 6ac04dff1ee3932d2ef94c1e42f4e8208fbf92bf Mon Sep 17 00:00:00 2001
a81953e
From: Gerd Hoffmann <kraxel@redhat.com>
a81953e
Date: Thu, 6 May 2010 11:13:11 +0200
a81953e
Subject: [PATCH 10/39] switch stdvga to pci vgabios
a81953e
a81953e
---
a81953e
 hw/vga-pci.c |    7 +++----
a81953e
 1 files changed, 3 insertions(+), 4 deletions(-)
a81953e
a81953e
diff --git a/hw/vga-pci.c b/hw/vga-pci.c
a81953e
index 3907871..8e1ed35 100644
a81953e
--- a/hw/vga-pci.c
a81953e
+++ b/hw/vga-pci.c
a81953e
@@ -105,11 +105,10 @@ static int pci_vga_initfn(PCIDevice *dev)
a81953e
             bios_total_size <<= 1;
a81953e
         pci_register_bar(&d->dev, PCI_ROM_SLOT, bios_total_size,
a81953e
                          PCI_BASE_ADDRESS_MEM_PREFETCH, vga_map);
a81953e
+     } else {
a81953e
+         if (dev->romfile == NULL)
a81953e
+             dev->romfile = qemu_strdup("vgabios-stdvga.bin");
a81953e
      }
a81953e
-
a81953e
-    vga_init_vbe(s);
a81953e
-     /* ROM BIOS */
a81953e
-     rom_add_vga(VGABIOS_FILENAME);
a81953e
      return 0;
a81953e
 }
a81953e
a81953e
-- 
a81953e
1.7.2.3
a81953e