qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hw/sh4/r2d: Convert legacy qemu_allocate_irqs() to qemu_init


From: Richard Henderson
Subject: Re: [PATCH] hw/sh4/r2d: Convert legacy qemu_allocate_irqs() to qemu_init_irqs()
Date: Tue, 21 Jan 2025 15:14:14 -0800
User-agent: Mozilla Thunderbird

On 1/21/25 10:24, Philippe Mathieu-Daudé wrote:
The FPGA exposes a fixed set of IRQs. Hold them in the FPGA
state and initialize them in place calling qemu_init_irqs().

Move r2d_fpga_irq enums earlier so we can use NR_IRQS within
the r2d_fpga_t structure. r2d_fpga_init() returns r2d_fpga_t,
and we dereference irq from it in r2d_init().

Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
Based-on:<20250121155526.29982-2-philmd@linaro.org>
           "hw/irq: Introduce qemu_init_irqs() helper"
---
  hw/sh4/r2d.c | 38 +++++++++++++++++++++-----------------
  1 file changed, 21 insertions(+), 17 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]