mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user