mirror of https://github.com/xemu-project/xemu.git
dino: define IRQ inputs as qdev GPIOs
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220504092600.10048-17-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
10c5264172
commit
4b5faaf94f
|
@ -513,6 +513,8 @@ static void dino_pcihost_init(Object *obj)
|
|||
pci_setup_iommu(phb->bus, dino_pcihost_set_iommu, s);
|
||||
|
||||
sysbus_init_mmio(sbd, &s->this_mem);
|
||||
|
||||
qdev_init_gpio_in(DEVICE(obj), dino_set_irq, DINO_IRQS);
|
||||
}
|
||||
|
||||
static Property dino_pcihost_properties[] = {
|
||||
|
|
|
@ -134,6 +134,8 @@ struct DinoState {
|
|||
MemoryRegion bm_ram_alias;
|
||||
MemoryRegion bm_pci_alias;
|
||||
MemoryRegion bm_cpu_alias;
|
||||
|
||||
qemu_irq irqs[DINO_IRQS];
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue