|
@@ -1222,6 +1222,15 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
|
|
|
.cpu_enable = cpu_enable_hw_dbm,
|
|
|
},
|
|
|
#endif
|
|
|
+ {
|
|
|
+ .desc = "CRC32 instructions",
|
|
|
+ .capability = ARM64_HAS_CRC32,
|
|
|
+ .type = ARM64_CPUCAP_SYSTEM_FEATURE,
|
|
|
+ .matches = has_cpuid_feature,
|
|
|
+ .sys_reg = SYS_ID_AA64ISAR0_EL1,
|
|
|
+ .field_pos = ID_AA64ISAR0_CRC32_SHIFT,
|
|
|
+ .min_field_value = 1,
|
|
|
+ },
|
|
|
{},
|
|
|
};
|
|
|
|