@samitouri / QOSamiQemu / commits / f6ff0d1ffc

accel/tcg: Have cpu_loop_exit_requested() take const @cpu argument

Since the CPUState argument is simply read-only accessed, make it const. Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20260617171438.75914-9-philmd@oss.qualcomm.com>

Philippe Mathieu-Daudé committed Jun 16, 2026 at 11:57 UTC f6ff0d1ffc6cf3e24c092a3abf445318b08f8160
1 file changed +1 -1
include/exec/cpu-common.h
+1 -1
@@ -73,7 +73,7 @@ void list_cpus(void);
73 * call can be used to check if it makes sense to return to the main loop
74 * or to continue executing the interruptible instruction.
75 */
76 -static inline bool cpu_loop_exit_requested(CPUState *cpu)
76 +static inline bool cpu_loop_exit_requested(const CPUState *cpu)
77 {
78 return (int32_t)qatomic_read(&cpu->neg.icount_decr.u32) < 0;
79 }