arm_sctlr_b() only access @env read-only, make it const.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
target/arm/cpu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.52.0