diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2022-05-04 10:25:16 +0100 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2022-05-08 18:52:36 +0100 |
commit | 5ac6c43c856a81e0ca1a1bab8f2fbd7b3a66274d (patch) | |
tree | 8222277b427301736ac79b139db92bebc6d2146d | |
parent | 270b29587f4705aa8d6b46ba2c0ff5bf712cc637 (diff) | |
download | qemu-5ac6c43c856a81e0ca1a1bab8f2fbd7b3a66274d.zip qemu-5ac6c43c856a81e0ca1a1bab8f2fbd7b3a66274d.tar.gz qemu-5ac6c43c856a81e0ca1a1bab8f2fbd7b3a66274d.tar.bz2 |
dino: move pci_setup_iommu() to dino_pcihost_init()
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220504092600.10048-7-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r-- | hw/hppa/dino.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/hppa/dino.c b/hw/hppa/dino.c index 13b2210..dcebb9f 100644 --- a/hw/hppa/dino.c +++ b/hw/hppa/dino.c @@ -556,7 +556,6 @@ PCIBus *dino_init(MemoryRegion *addr_space, memory_region_add_subregion(&s->bm, 0xfff00000, &s->bm_cpu_alias); address_space_init(&s->bm_as, &s->bm, "pci-bm"); - pci_setup_iommu(b, dino_pcihost_set_iommu, s); *p_rtc_irq = qemu_allocate_irq(dino_set_timer_irq, s, 0); *p_ser_irq = qemu_allocate_irq(dino_set_serial_irq, s, 0); @@ -605,6 +604,8 @@ static void dino_pcihost_init(Object *obj) g_free(name); } + pci_setup_iommu(phb->bus, dino_pcihost_set_iommu, s); + sysbus_init_mmio(sbd, &s->this_mem); } |