From: Philippe Mathieu-Daudé Date: Thu, 29 Jan 2026 15:01:48 +0000 (+0100) Subject: target/arm: Have arm_sctlr_b() take a const @env argument X-Git-Tag: v11.0.0-rc0~86^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c87ef9d18a49d698a7b82f310af679554ebb9524;p=thirdparty%2Fqemu.git target/arm: Have arm_sctlr_b() take a const @env argument arm_sctlr_b() only access @env read-only, make it const. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-ID: <20260202222412.24923-5-philmd@linaro.org> --- diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 40237168419..e146f7e6c41 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -2385,7 +2385,7 @@ static inline bool arm_v7m_csselr_razwi(ARMCPU *cpu) return (GET_IDREG(&cpu->isar, CLIDR) & R_V7M_CLIDR_CTYPE_ALL_MASK) != 0; } -static inline bool arm_sctlr_b(CPUARMState *env) +static inline bool arm_sctlr_b(const CPUARMState *env) { return /* We need not implement SCTLR.ITD in user-mode emulation, so