machine.c: map DINO device during board configuration
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220504092600.10048-15-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>
This commit is contained in:
parent
05245daf47
commit
efdb3ce2de
@ -421,9 +421,6 @@ DinoState *dino_init(MemoryRegion *addr_space,
|
||||
s = DINO_PCI_HOST_BRIDGE(dev);
|
||||
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
|
||||
|
||||
memory_region_add_subregion(addr_space, DINO_HPA,
|
||||
sysbus_mmio_get_region(SYS_BUS_DEVICE(dev), 0));
|
||||
|
||||
*p_rtc_irq = qemu_allocate_irq(dino_set_timer_irq, s, 0);
|
||||
*p_ser_irq = qemu_allocate_irq(dino_set_serial_irq, s, 0);
|
||||
|
||||
|
@ -168,6 +168,9 @@ static void machine_hppa_init(MachineState *machine)
|
||||
|
||||
/* Init Dino (PCI host bus chip). */
|
||||
dino_dev = DEVICE(dino_init(addr_space, &rtc_irq, &serial_irq));
|
||||
memory_region_add_subregion(addr_space, DINO_HPA,
|
||||
sysbus_mmio_get_region(
|
||||
SYS_BUS_DEVICE(dino_dev), 0));
|
||||
pci_bus = PCI_BUS(qdev_get_child_bus(dino_dev, "pci"));
|
||||
assert(pci_bus);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user