mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 02:24:51 +00:00
target/arm: Have arm_feature() take a const @env argument
arm_feature() 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-2-philmd@linaro.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user