[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH-for-5.2 1/5] hw/arm/armsse: Correct expansion MPC interrupt lines
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH-for-5.2 1/5] hw/arm/armsse: Correct expansion MPC interrupt lines |
Date: |
Sat, 7 Nov 2020 20:33:59 +0100 |
We can use one MPC per SRAM bank, but we currently only wire the
IRQ from the first expansion MPC to the IRQ splitter. Fix that.
Fixes: bb75e16d5e6 ("hw/arm/iotkit: Wire up MPC interrupt lines")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/arm/armsse.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/arm/armsse.c b/hw/arm/armsse.c
index a93da37dcbb..baac027659d 100644
--- a/hw/arm/armsse.c
+++ b/hw/arm/armsse.c
@@ -1074,7 +1074,8 @@ static void armsse_realize(DeviceState *dev, Error **errp)
qdev_get_gpio_in(dev_splitter, 0));
qdev_connect_gpio_out(dev_splitter, 0,
qdev_get_gpio_in_named(dev_secctl,
- "mpc_status", 0));
+ "mpc_status",
+ i -
IOTS_NUM_EXP_MPC));
}
qdev_connect_gpio_out(dev_splitter, 1,
--
2.26.2
- [PATCH-for-5.2 0/5] hw/arm: Fix various incorrect IRQ handling, Philippe Mathieu-Daudé, 2020/11/07
- [PATCH-for-5.2 1/5] hw/arm/armsse: Correct expansion MPC interrupt lines,
Philippe Mathieu-Daudé <=
- [PATCH-for-5.2 2/5] hw/misc/stm32f2xx_syscfg: Remove extraneous IRQ, Philippe Mathieu-Daudé, 2020/11/07
- [PATCH-for-5.2 3/5] hw/arm/nseries: Remove invalid/unnecessary n8x0_uart_setup(), Philippe Mathieu-Daudé, 2020/11/07
- [PATCH-for-5.2? 4/5] hw/arm/musicpal: Don't connect two qemu_irqs directly to the same input, Philippe Mathieu-Daudé, 2020/11/07
- [PATCH-for-6.0 5/5] hw/arm/musicpal: Only use qdev_get_gpio_in() when necessary, Philippe Mathieu-Daudé, 2020/11/07
- Re: [PATCH-for-5.2 0/5] hw/arm: Fix various incorrect IRQ handling, Peter Maydell, 2020/11/09