]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm: Have is_64() take a const @env argument
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 20 Jan 2025 02:54:31 +0000 (03:54 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 3 Feb 2026 13:57:34 +0000 (14:57 +0100)
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>

target/arm/cpu.h

index d4a146b42025137503e94cca4b10e6dc999537f7..40237168419c1e7dfe568e8e085d34710f23f880 100644 (file)
@@ -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;
 }