From f6ff0d1ffc6cf3e24c092a3abf445318b08f8160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Tue, 16 Jun 2026 11:57:05 +0200 Subject: [PATCH] accel/tcg: Have cpu_loop_exit_requested() take const @cpu argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since the CPUState argument is simply read-only accessed, make it const. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20260617171438.75914-9-philmd@oss.qualcomm.com> --- include/exec/cpu-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h index db67c7bb86..919ba41a01 100644 --- a/include/exec/cpu-common.h +++ b/include/exec/cpu-common.h @@ -73,7 +73,7 @@ void list_cpus(void); * call can be used to check if it makes sense to return to the main loop * or to continue executing the interruptible instruction. */ -static inline bool cpu_loop_exit_requested(CPUState *cpu) +static inline bool cpu_loop_exit_requested(const CPUState *cpu) { return (int32_t)qatomic_read(&cpu->neg.icount_decr.u32) < 0; }