On Thu, Oct 2, 2025 at 5:36 AM Philippe Mathieu-Daudé <[email protected]> wrote:
>
> env_cpu() already returns a CPUState type, no need to cast.
>
> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>

Reviewed-by: Clément Chigot <[email protected]>

> ---
>  hw/sparc/leon3.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c
> index 0aeaad3becc..09d2cec488c 100644
> --- a/hw/sparc/leon3.c
> +++ b/hw/sparc/leon3.c
> @@ -192,7 +192,7 @@ static void leon3_cache_control_int(CPUSPARCState *env)
>
>  static void leon3_irq_ack(CPUSPARCState *env, int intno)
>  {
> -    CPUState *cpu = CPU(env_cpu(env));
> +    CPUState *cpu = env_cpu(env);
>      grlib_irqmp_ack(env->irq_manager, cpu->cpu_index, intno);
>  }
>
> --
> 2.51.0
>

Reply via email to