From: Philippe Mathieu-Daudé Date: Mon, 25 Aug 2025 15:21:13 +0000 (+0200) Subject: hw/ppc: Do not open-code cpu_resume() in spin_kick() X-Git-Tag: v10.2.0-rc1~65^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9df035ecf735a41a0dd7686bf1d81e1b2f30eff8;p=thirdparty%2Fqemu.git hw/ppc: Do not open-code cpu_resume() in spin_kick() In order to make the code easier to follow / review, use the cpu_resume() helper instead of open-coding it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250924173028.53658-2-philmd@linaro.org> --- diff --git a/hw/ppc/ppce500_spin.c b/hw/ppc/ppce500_spin.c index 2310f62a91..bc70e50e92 100644 --- a/hw/ppc/ppce500_spin.c +++ b/hw/ppc/ppce500_spin.c @@ -99,8 +99,7 @@ static void spin_kick(CPUState *cs, run_on_cpu_data data) cs->halted = 0; cs->exception_index = -1; - cs->stopped = false; - qemu_cpu_kick(cs); + cpu_resume(cs); } static void spin_write(void *opaque, hwaddr addr, uint64_t value,