Skip to content

Commit

Permalink
lib/arm/cpu_features: detect dotprod support on Windows ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiggers committed Apr 5, 2024
1 parent e522b1d commit 689670d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/arm/cpu_features.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,12 @@ static u32 query_arm_cpu_features(void)
if (IsProcessorFeaturePresent(PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE))
features |= ARM_CPU_FEATURE_CRC32;

/* FIXME: detect SHA3 and DOTPROD support too. */
#ifdef PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE
if (IsProcessorFeaturePresent(PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE))
features |= ARM_CPU_FEATURE_DOTPROD;
#endif

/* FIXME: detect SHA3 support too. */

return features;
}
Expand Down

0 comments on commit 689670d

Please sign in to comment.