]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm: Have arm_sctlr_b() take a const @env argument
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 29 Jan 2026 15:01:48 +0000 (16:01 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 3 Feb 2026 13:57:34 +0000 (14:57 +0100)
arm_sctlr_b() 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-5-philmd@linaro.org>

target/arm/cpu.h

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