diff options
Diffstat (limited to 'hw/xtensa/virt.c')
-rw-r--r-- | hw/xtensa/virt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xtensa/virt.c b/hw/xtensa/virt.c index 98622ae..b08404f 100644 --- a/hw/xtensa/virt.c +++ b/hw/xtensa/virt.c @@ -93,7 +93,7 @@ static void create_pcie(MachineState *ms, CPUXtensaState *env, int irq_base, /* Connect IRQ lines. */ extints = xtensa_get_extints(env); - for (i = 0; i < GPEX_NUM_IRQS; i++) { + for (i = 0; i < PCI_NUM_PINS; i++) { void *q = extints[irq_base + i]; sysbus_connect_irq(SYS_BUS_DEVICE(dev), i, q); |