aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorGraeme Gregory <graeme@nuviainc.com>2020-08-28 10:02:43 +0100
committerPeter Maydell <peter.maydell@linaro.org>2020-08-28 10:02:43 +0100
commit870f0051b4ada9a361f7454f833432ae8c06c095 (patch)
tree5cc62e0ba82a5dc046e9dc6319306796fdbdfcbe /hw/arm
parent19591e9e0938ea5066984553c256a043bd5d822f (diff)
downloadqemu-870f0051b4ada9a361f7454f833432ae8c06c095.zip
qemu-870f0051b4ada9a361f7454f833432ae8c06c095.tar.gz
qemu-870f0051b4ada9a361f7454f833432ae8c06c095.tar.bz2
hw/arm/sbsa-ref: fix typo breaking PCIe IRQs
Fixing a typo in a previous patch that translated an "i" to a 1 and therefore breaking the allocation of PCIe interrupts. This was discovered when virtio-net-pci devices ceased to function correctly. Cc: qemu-stable@nongnu.org Fixes: 48ba18e6d3f3 ("hw/arm/sbsa-ref: Simplify by moving the gic in the machine state") Signed-off-by: Graeme Gregory <graeme@nuviainc.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20200821083853.356490-1-graeme@nuviainc.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/sbsa-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
index f030a41..2a7d9a6 100644
--- a/hw/arm/sbsa-ref.c
+++ b/hw/arm/sbsa-ref.c
@@ -554,7 +554,7 @@ static void create_pcie(SBSAMachineState *sms)
for (i = 0; i < GPEX_NUM_IRQS; i++) {
sysbus_connect_irq(SYS_BUS_DEVICE(dev), i,
- qdev_get_gpio_in(sms->gic, irq + 1));
+ qdev_get_gpio_in(sms->gic, irq + i));
gpex_set_irq_num(GPEX_HOST(dev), i, irq + i);
}