]> git.proxmox.com Git - mirror_qemu.git/commitdiff
isa: remove isa_mem_base variable
authorHervé Poussineau <hpoussin@reactos.org>
Sun, 1 Feb 2015 08:12:56 +0000 (09:12 +0100)
committerLeon Alrae <leon.alrae@imgtec.com>
Fri, 13 Feb 2015 14:09:28 +0000 (14:09 +0000)
Now that isa_mem_base variable is always 0, we can remove its usage.

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
hw/display/cirrus_vga.c
hw/display/vga-isa.c
hw/display/vga.c
hw/isa/isa-bus.c
include/hw/isa/isa.h

index 3a53f2039241ad459d7db8d6787dfd271a8f361b..ec923c8c4b8779655db339a370040346a60c4e94 100644 (file)
@@ -2907,7 +2907,7 @@ static void cirrus_init_common(CirrusVGAState *s, Object *owner,
                                             bank, 1);
     }
     memory_region_add_subregion_overlap(system_memory,
-                                        isa_mem_base + 0x000a0000,
+                                        0x000a0000,
                                         &s->low_mem_container,
                                         1);
     memory_region_set_coalescing(&s->low_mem);
index 2b480bd44d2c19b506e6193206bf924dd4865603..7f3c98941bec4502467238dd66d9a9e94b6c8efc 100644 (file)
@@ -64,7 +64,7 @@ static void vga_isa_realizefn(DeviceState *dev, Error **errp)
         isa_register_portio_list(isadev, 0x1ce, vbe_ports, s, "vbe");
     }
     memory_region_add_subregion_overlap(isa_address_space(isadev),
-                                        isa_mem_base + 0x000a0000,
+                                        0x000a0000,
                                         vga_io_memory, 1);
     memory_region_set_coalescing(vga_io_memory);
     s->con = graphic_console_init(DEVICE(dev), 0, s->hw_ops, s);
index 9c62fbf48823078fc32bbd5a11b6aa177ee28eaf..c8c49abc6e8ba555e01e484996b6f3545ca28977 100644 (file)
@@ -177,7 +177,6 @@ static void vga_update_memory_access(VGACommonState *s)
             size = 0x8000;
             break;
         }
-        base += isa_mem_base;
         memory_region_init_alias(&s->chain4_alias, memory_region_owner(&s->vram),
                                  "vga.chain4", &s->vram, offset, size);
         memory_region_add_subregion_overlap(s->legacy_address_space, base,
@@ -2218,7 +2217,7 @@ void vga_init(VGACommonState *s, Object *obj, MemoryRegion *address_space,
 
     vga_io_memory = vga_init_io(s, obj, &vga_ports, &vbe_ports);
     memory_region_add_subregion_overlap(address_space,
-                                        isa_mem_base + 0x000a0000,
+                                        0x000a0000,
                                         vga_io_memory,
                                         1);
     memory_region_set_coalescing(vga_io_memory);
index fd6a3a19e7a3b4a65e145fe7fb85d81580e6e8a4..825aa627df62053757c6cf8884c0e55ff6199d53 100644 (file)
@@ -23,7 +23,6 @@
 #include "hw/isa/isa.h"
 
 static ISABus *isabus;
-hwaddr isa_mem_base = 0;
 
 static void isabus_dev_print(Monitor *mon, DeviceState *dev, int indent);
 static char *isabus_get_fw_dev_path(DeviceState *dev);
index c6218224d52b69de3da6fa1dd660d38500729ca8..cf7bd343c7bf5962a9e6e881d654fbd20137bb4a 100644 (file)
@@ -99,8 +99,6 @@ static inline ISABus *isa_bus_from_device(ISADevice *d)
     return ISA_BUS(qdev_get_parent_bus(DEVICE(d)));
 }
 
-extern hwaddr isa_mem_base;
-
 /* dma.c */
 int DMA_get_channel_mode (int nchan);
 int DMA_read_memory (int nchan, void *buf, int pos, int size);