Skip to contentSkip to conversation

target/arm: Delete unused ARM_FEATURE_CRC

PATCH In review Peter Maydell 3 participants 3 messages Aug 5, 2020 – Aug 6, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/arm: Delete unused ARM_FEATURE_CRC

In commit 962fcbf2efe57231a9f5df we converted the uses of the ARM_FEATURE_CRC bit to use the aa32_crc32 isar_feature test instead. However we forgot to remove the now-unused definition of the feature name in the enum. Delete it now.

---
 target/arm/cpu.h | 1 -
 1 file changed, 1 deletion(-)
target/arm/cpu.h +0 -1
index 9e8ed423ea1..9d2845c1797 100644
@@ -1950,7 +1950,6 @@ enum arm_features {
     ARM_FEATURE_V8,
     ARM_FEATURE_AARCH64, /* supports 64 bit mode */
     ARM_FEATURE_CBAR, /* has cp15 CBAR */
-    ARM_FEATURE_CRC, /* ARMv8 CRC instructions */
     ARM_FEATURE_CBAR_RO, /* has cp15 CBAR and it is read-only */
     ARM_FEATURE_EL2, /* has EL2 Virtualization support */
     ARM_FEATURE_EL3, /* has EL3 Secure monitor support */
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Peter Maydell

In commit 962fcbf2efe57231a9f5df we converted the uses of the ARM_FEATURE_CRC bit to use the aa32_crc32 isar_feature test instead. However we forgot to remove the now-unused definition of the feature name in the enum. Delete it now.

---
 target/arm/cpu.h | 1 -
 1 file changed, 1 deletion(-)

r~

Reviewed-by on v1 1/1
#2 lore raw
In reply to Peter Maydell
Quoted 16 lines · Peter Maydell

In commit 962fcbf2efe57231a9f5df we converted the uses of the ARM_FEATURE_CRC bit to use the aa32_crc32 isar_feature test instead. However we forgot to remove the now-unused definition of the feature name in the enum. Delete it now.

---
 target/arm/cpu.h | 1 -
 1 file changed, 1 deletion(-)
target/arm/cpu.h +0 -0
index 9e8ed423ea1..9d2845c1797 100644

target/arm/cpu.h enum arm_features { · line 1955

Quoted 7 lines
target/arm/cpu.h +0 -1
@@ -1950,7 +1950,6 @@ enum arm_features {
     ARM_FEATURE_V8,
     ARM_FEATURE_AARCH64, /* supports 64 bit mode */
     ARM_FEATURE_CBAR, /* has cp15 CBAR */
-    ARM_FEATURE_CRC, /* ARMv8 CRC instructions */
     ARM_FEATURE_CBAR_RO, /* has cp15 CBAR and it is read-only */
     ARM_FEATURE_EL2, /* has EL2 Virtualization support */
     ARM_FEATURE_EL3, /* has EL3 Secure monitor support */