[PATCH] hw/arm/xilinx_zynq: Wire FIQ between CPU <> GIC

Philippe Mathieu-Daudé posted 1 patch 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240130152548.17855-1-philmd@linaro.org
Maintainers: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Alistair Francis <alistair@alistair23.me>, Peter Maydell <peter.maydell@linaro.org>
hw/arm/xilinx_zynq.c | 2 ++
1 file changed, 2 insertions(+)
[PATCH] hw/arm/xilinx_zynq: Wire FIQ between CPU <> GIC
Posted by Philippe Mathieu-Daudé 10 months ago
Similarly to commits dadbb58f59..5ae79fe825 for other ARM boards,
connect FIQ output of the GIC CPU interfaces to the CPU.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 hw/arm/xilinx_zynq.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c
index 66d0de139f..ffad058107 100644
--- a/hw/arm/xilinx_zynq.c
+++ b/hw/arm/xilinx_zynq.c
@@ -246,6 +246,8 @@ static void zynq_init(MachineState *machine)
     sysbus_mmio_map(busdev, 0, MPCORE_PERIPHBASE);
     sysbus_connect_irq(busdev, 0,
                        qdev_get_gpio_in(DEVICE(cpu), ARM_CPU_IRQ));
+    sysbus_connect_irq(busdev, 1,
+                       qdev_get_gpio_in(DEVICE(cpu), ARM_CPU_FIQ));
 
     for (n = 0; n < 64; n++) {
         pic[n] = qdev_get_gpio_in(dev, n);
-- 
2.41.0


Re: [PATCH] hw/arm/xilinx_zynq: Wire FIQ between CPU <> GIC
Posted by Peter Maydell 9 months, 3 weeks ago
On Tue, 30 Jan 2024 at 15:25, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> Similarly to commits dadbb58f59..5ae79fe825 for other ARM boards,
> connect FIQ output of the GIC CPU interfaces to the CPU.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>  hw/arm/xilinx_zynq.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/hw/arm/xilinx_zynq.c b/hw/arm/xilinx_zynq.c
> index 66d0de139f..ffad058107 100644
> --- a/hw/arm/xilinx_zynq.c
> +++ b/hw/arm/xilinx_zynq.c
> @@ -246,6 +246,8 @@ static void zynq_init(MachineState *machine)
>      sysbus_mmio_map(busdev, 0, MPCORE_PERIPHBASE);
>      sysbus_connect_irq(busdev, 0,
>                         qdev_get_gpio_in(DEVICE(cpu), ARM_CPU_IRQ));
> +    sysbus_connect_irq(busdev, 1,
> +                       qdev_get_gpio_in(DEVICE(cpu), ARM_CPU_FIQ));
>
>      for (n = 0; n < 64; n++) {
>          pic[n] = qdev_get_gpio_in(dev, n);
> --



Applied to target-arm.next, thanks.

-- PMM