[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 04/18] hw/arm/xilinx_zynq: Fix IRQ/FIQ routing
From: |
Peter Maydell |
Subject: |
[PULL 04/18] hw/arm/xilinx_zynq: Fix IRQ/FIQ routing |
Date: |
Sat, 22 Jun 2024 13:06:29 +0100 |
From: Sebastian Huber <sebastian.huber@embedded-brains.de>
Fix the system bus interrupt line to CPU core assignment.
Fixes: ddcf58e044ce0 ("hw/arm/xilinx_zynq: Support up to two CPU cores")
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20240610052906.4432-1-sebastian.huber@embedded-brains.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/arm/xilinx_zynq.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c
index 7f7a3d23fbe..c79661bbc1b 100644
--- a/hw/arm/xilinx_zynq.c
+++ b/hw/arm/xilinx_zynq.c
@@ -252,10 +252,11 @@ static void zynq_init(MachineState *machine)
zynq_binfo.gic_cpu_if_addr = MPCORE_PERIPHBASE + 0x100;
sysbus_create_varargs("l2x0", MPCORE_PERIPHBASE + 0x2000, NULL);
for (n = 0; n < smp_cpus; n++) {
+ /* See "hw/intc/arm_gic.h" for the IRQ line association */
DeviceState *cpudev = DEVICE(zynq_machine->cpu[n]);
- sysbus_connect_irq(busdev, (2 * n) + 0,
+ sysbus_connect_irq(busdev, n,
qdev_get_gpio_in(cpudev, ARM_CPU_IRQ));
- sysbus_connect_irq(busdev, (2 * n) + 1,
+ sysbus_connect_irq(busdev, smp_cpus + n,
qdev_get_gpio_in(cpudev, ARM_CPU_FIQ));
}
--
2.34.1
- [PULL 00/18] target-arm queue, Peter Maydell, 2024/06/22
- [PULL 01/18] hw/net/can/xlnx-versal-canfd: Fix sorting of the tx queue, Peter Maydell, 2024/06/22
- [PULL 07/18] scripts/coverity-scan/COMPONENTS.md: Add crypto headers in host/include to the crypto component, Peter Maydell, 2024/06/22
- [PULL 03/18] hw/intc/arm_gic: Fix deactivation of SPI lines, Peter Maydell, 2024/06/22
- [PULL 04/18] hw/arm/xilinx_zynq: Fix IRQ/FIQ routing,
Peter Maydell <=
- [PULL 06/18] scripts/coverity-scan/COMPONENTS.md: Fix 'char' component, Peter Maydell, 2024/06/22
- [PULL 12/18] hw/arm/virt: Add serial aliases in DTB, Peter Maydell, 2024/06/22
- [PULL 16/18] hw/misc: Set valid access size for Exynos4210 RNG, Peter Maydell, 2024/06/22
- [PULL 05/18] scripts/coverity-scan/COMPONENTS.md: Update paths to match gitlab CI, Peter Maydell, 2024/06/22
- [PULL 02/18] hw/arm/sbsa-ref: switch to 1GHz timer frequency, Peter Maydell, 2024/06/22
- [PULL 08/18] scripts/coverity-scan/COMPONENTS.md: Fix monitor component, Peter Maydell, 2024/06/22
- [PULL 09/18] scripts/coverity-scan/COMPONENTS.md: Include libqmp in testlibs, Peter Maydell, 2024/06/22
- [PULL 11/18] hw/usb/hcd-dwc2: Handle invalid address access in read and write functions, Peter Maydell, 2024/06/22
- [PULL 14/18] hw/arm/virt: allow creation of a second NonSecure UART, Peter Maydell, 2024/06/22
- [PULL 15/18] hw/arm/virt: Avoid unexpected warning from Linux guest on host with Fujitsu CPUs, Peter Maydell, 2024/06/22