arm_feature() 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 21fee5e840b..d4a146b4202 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -2140,7 +2140,7 @@ enum arm_features {
ARM_FEATURE_BACKCOMPAT_CNTFRQ, /* 62.5MHz timer default */
};
-static inline int arm_feature(CPUARMState *env, int feature)
+static inline int arm_feature(const CPUARMState *env, int feature)
{
return (env->features & (1ULL << feature)) != 0;
}
--
2.52.0