hw/display: Remove "rombar" hack from vga-pci and vmware_vga
authorThomas Huth <thuth@redhat.com>
Mon, 9 Dec 2019 12:52:48 +0000 (13:52 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Dec 2019 01:34:12 +0000 (02:34 +0100)
Now that the old pc-0.x machine types have been removed, we do not need
the old "rombar" hacks anymore.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20191209125248.5849-5-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/display/vga-pci.c
hw/display/vga.c
hw/display/vmware_vga.c

index a27b88122d4288c3a6c65561927f0213c1051f7f..cfe095713ef280ba5175478dae830242c9a277d0 100644 (file)
@@ -264,11 +264,6 @@ static void pci_std_vga_realize(PCIDevice *dev, Error **errp)
 
         pci_register_bar(&d->dev, 2, PCI_BASE_ADDRESS_SPACE_MEMORY, &d->mmio);
     }
-
-    if (!dev->rom_bar) {
-        /* compatibility with pc-0.13 and older */
-        vga_init_vbe(s, OBJECT(dev), pci_address_space(dev));
-    }
 }
 
 static void pci_std_vga_init(Object *obj)
index 82ebe536109685251c3f96fac1c3a83487cc16fc..636586a47651542f28702c51c050fa10151ef4e9 100644 (file)
@@ -2304,9 +2304,7 @@ void vga_init(VGACommonState *s, Object *obj, MemoryRegion *address_space,
 
 void vga_init_vbe(VGACommonState *s, Object *obj, MemoryRegion *system_memory)
 {
-    /* With pc-0.12 and below we map both the PCI BAR and the fixed VBE region,
-     * so use an alias to avoid double-mapping the same region.
-     */
+    /* Use an alias to avoid double-mapping the same region */
     memory_region_init_alias(&s->vram_vbe, obj, "vram.vbe",
                              &s->vram, 0, memory_region_size(&s->vram));
     /* XXX: use optimized standard vga accesses */
index 23dc8910cc564ee316327b1afa4fdfed2ff2f1a3..ead754eccfdb866e4ed7fcf72443f07dec35fea7 100644 (file)
@@ -1312,11 +1312,6 @@ static void pci_vmsvga_realize(PCIDevice *dev, Error **errp)
                      &s->chip.vga.vram);
     pci_register_bar(dev, 2, PCI_BASE_ADDRESS_MEM_PREFETCH,
                      &s->chip.fifo_ram);
-
-    if (!dev->rom_bar) {
-        /* compatibility with pc-0.13 and older */
-        vga_init_vbe(&s->chip.vga, OBJECT(dev), pci_address_space(dev));
-    }
 }
 
 static Property vga_vmware_properties[] = {