The @cpu_ variable is only accessed read-only, make it const.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
target/arm/cpu-features.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/arm/cpu-features.h b/target/arm/cpu-features.h
index a7ca410dcb4..f7b14373407 100644
--- a/target/arm/cpu-features.h
+++ b/target/arm/cpu-features.h
@@ -1643,6 +1643,6 @@ static inline uint64_t make_ccsidr(CCSIDRFormat format,
unsigned assoc,
* Forward to the above feature tests given an ARMCPU pointer.
*/
#define cpu_isar_feature(name, cpu) \
- ({ ARMCPU *cpu_ = (cpu); isar_feature_##name(&cpu_->isar); })
+ ({ const ARMCPU *cpu_ = (cpu); isar_feature_##name(&cpu_->isar); })
#endif
--
2.52.0