[compiler-rt] [FMV][compiler-rt] Fix cpu features initialization. (PR #95149)
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 07:31:48 PDT 2024
================
@@ -52,23 +45,20 @@ static void __init_cpu_features_constructor(unsigned long hwcap,
setCPUFeature(FEAT_FCMA);
if (hwcap & HWCAP_SB)
setCPUFeature(FEAT_SB);
- if (hwcap & HWCAP_SSBS)
+ if (hwcap & HWCAP_SSBS) {
+ setCPUFeature(FEAT_SSBS);
----------------
jroelofs wrote:
Does SSBS2 imply SSBS? If so, I think I need to add `CHECK_BIT(CAP_BIT_FEAT_SSBS, FEAT_SSBS);` to `apple.inc`
https://github.com/llvm/llvm-project/pull/95149
More information about the llvm-commits
mailing list