summaryrefslogtreecommitdiffstats
path: root/hw/pci-host/apb.c
diff options
context:
space:
mode:
authorMark Cave-Ayland2017-12-21 08:32:57 +0100
committerMark Cave-Ayland2018-01-09 22:31:31 +0100
commitc796eddaad58301611315ae3c16f3ef26ccf207a (patch)
treeb7516d1bdb987f08c90765603b070af213e0471a /hw/pci-host/apb.c
parentsun4u: move ISABus inside of EBusState (diff)
downloadqemu-c796eddaad58301611315ae3c16f3ef26ccf207a.tar.gz
qemu-c796eddaad58301611315ae3c16f3ef26ccf207a.tar.xz
qemu-c796eddaad58301611315ae3c16f3ef26ccf207a.zip
sun4u: remove pci_ebus_init() function
This is initialisation that should really take place in the ebus realize function. As part of this we also rework the ebus IRQ mapping so that instead of having to pass in the array of pbm_irqs, we obtain a reference to them by looking up the APB device during ebus realize. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/pci-host/apb.c')
-rw-r--r--hw/pci-host/apb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/pci-host/apb.c b/hw/pci-host/apb.c
index f743a4e312..b0f80f63eb 100644
--- a/hw/pci-host/apb.c
+++ b/hw/pci-host/apb.c
@@ -614,8 +614,7 @@ static void apb_pci_bridge_realize(PCIDevice *dev, Error **errp)
PCIBus *pci_apb_init(hwaddr special_base,
hwaddr mem_base,
- qemu_irq *ivec_irqs, PCIBus **busA, PCIBus **busB,
- qemu_irq **pbm_irqs)
+ qemu_irq *ivec_irqs, PCIBus **busA, PCIBus **busB)
{
DeviceState *dev;
SysBusDevice *s;
@@ -646,7 +645,6 @@ PCIBus *pci_apb_init(hwaddr special_base,
memory_region_init(&d->pci_mmio, OBJECT(s), "pci-mmio", 0x100000000ULL);
memory_region_add_subregion(get_system_memory(), mem_base, &d->pci_mmio);
- *pbm_irqs = d->pbm_irqs;
d->ivec_irqs = ivec_irqs;
pci_create_simple(phb->bus, 0, "pbm-pci");