summary refs log tree commit diff stats
path: root/target/sparc/int32_helper.c
diff options
context:
space:
mode:
authorClément Chigot <chigot@adacore.com>2024-01-05 11:24:18 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-05 16:20:15 +0100
commita318da6b3f6a88e6cfd6953c519def9457e8962f (patch)
tree49c96ca40adf845c0ead460d08bce0bf0d0a2b91 /target/sparc/int32_helper.c
parent25145a7d7735344a469551946fc2a7f19eb4aa3d (diff)
downloadfocaccia-qemu-a318da6b3f6a88e6cfd6953c519def9457e8962f.tar.gz
focaccia-qemu-a318da6b3f6a88e6cfd6953c519def9457e8962f.zip
target/sparc: Simplify qemu_irq_ack
This is a simple cleanup, since env is passed to qemu_irq_ack it can be
accessed from inside qemu_irq_ack.  Just drop this parameter.

Co-developed-by: Frederic Konrad <konrad.frederic@yahoo.fr>
Signed-off-by: Clément Chigot <chigot@adacore.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240105102421.163554-7-chigot@adacore.com>
Diffstat (limited to 'target/sparc/int32_helper.c')
-rw-r--r--target/sparc/int32_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/sparc/int32_helper.c b/target/sparc/int32_helper.c
index 1563613582..8f4e08ed09 100644
--- a/target/sparc/int32_helper.c
+++ b/target/sparc/int32_helper.c
@@ -160,7 +160,7 @@ void sparc_cpu_do_interrupt(CPUState *cs)
 #if !defined(CONFIG_USER_ONLY)
     /* IRQ acknowledgment */
     if ((intno & ~15) == TT_EXTINT && env->qemu_irq_ack != NULL) {
-        env->qemu_irq_ack(env, env->irq_manager, intno);
+        env->qemu_irq_ack(env, intno);
     }
 #endif
 }