Commit 655309dc4c for qemu.org
commit 655309dc4cc8f2b33376f9de869aeb163a50a67c
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: Mon Jan 20 03:54:31 2025 +0100
target/arm: Have is_64() take a const @env argument
is_64() only access @env read-only, make it const.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20260202222412.24923-4-philmd@linaro.org>
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index d4a146b420..4023716841 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -1345,7 +1345,7 @@ uint32_t sve_vqm1_for_el_sm(CPUARMState *env, int el, bool sm);
/* Likewise, but using @sm = PSTATE.SM. */
uint32_t sve_vqm1_for_el(CPUARMState *env, int el);
-static inline bool is_a64(CPUARMState *env)
+static inline bool is_a64(const CPUARMState *env)
{
return env->aarch64;
}