mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
grackle: move PCI IO (ISA) memory region into the grackle device
This simplifies the Old World machine to simply mapping the ISA memory region into the main address space. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
a773e64a8f
commit
a94e5f998b
2 changed files with 9 additions and 7 deletions
|
@ -91,7 +91,6 @@ static void ppc_heathrow_init(MachineState *machine)
|
|||
int linux_boot, i;
|
||||
MemoryRegion *ram = g_new(MemoryRegion, 1);
|
||||
MemoryRegion *bios = g_new(MemoryRegion, 1);
|
||||
MemoryRegion *isa = g_new(MemoryRegion, 1);
|
||||
uint32_t kernel_base, initrd_base, cmdline_base = 0;
|
||||
int32_t kernel_size, initrd_size;
|
||||
PCIBus *pci_bus;
|
||||
|
@ -225,11 +224,6 @@ static void ppc_heathrow_init(MachineState *machine)
|
|||
}
|
||||
}
|
||||
|
||||
/* Register 2 MB of ISA IO space */
|
||||
memory_region_init_alias(isa, NULL, "isa_mmio",
|
||||
get_system_io(), 0, 0x00200000);
|
||||
memory_region_add_subregion(sysmem, 0xfe000000, isa);
|
||||
|
||||
/* XXX: we register only 1 output pin for heathrow PIC */
|
||||
pic_dev = qdev_create(NULL, TYPE_HEATHROW);
|
||||
qdev_init_nofail(pic_dev);
|
||||
|
@ -276,6 +270,9 @@ static void ppc_heathrow_init(MachineState *machine)
|
|||
/* PCI hole */
|
||||
memory_region_add_subregion(get_system_memory(), 0x80000000ULL,
|
||||
sysbus_mmio_get_region(s, 2));
|
||||
/* Register 2 MB of ISA IO space */
|
||||
memory_region_add_subregion(get_system_memory(), 0xfe000000,
|
||||
sysbus_mmio_get_region(s, 3));
|
||||
|
||||
pci_bus = PCI_HOST_BRIDGE(dev)->bus;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue