From: Philippe Mathieu-Daudé Date: Thu, 2 Oct 2025 02:26:32 +0000 (+0200) Subject: hw/sparc/leon3: Remove unnecessary CPU() QOM cast X-Git-Tag: v10.2.0-rc1~65^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=525e1c9908704377007e1cef2bbc4e2bef7e5197;p=thirdparty%2Fqemu.git hw/sparc/leon3: Remove unnecessary CPU() QOM cast env_cpu() already returns a CPUState type, no need to cast. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Clément Chigot Message-Id: <20251002033623.26800-1-philmd@linaro.org> --- diff --git a/hw/sparc/leon3.c b/hw/sparc/leon3.c index 0aeaad3bec..09d2cec488 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); }