Blame 0010-switch-stdvga-to-pci-vgabios.patch

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