]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/ppc: Do not open-code cpu_resume() in spin_kick()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 25 Aug 2025 15:21:13 +0000 (17:21 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 13 Oct 2025 19:00:09 +0000 (21:00 +0200)
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é <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250924173028.53658-2-philmd@linaro.org>

hw/ppc/ppce500_spin.c

index 2310f62a91e4a7630b42c648cc1e935a45b174a2..bc70e50e926eb0e349d395b930f6d9f42395ecbb 100644 (file)
@@ -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,