aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-01-24 19:33:43 -0800
committerH.J. Lu <hjl.tools@gmail.com>2022-01-26 21:08:05 -0800
commit501246c5e2dfcc278f0ebbdb72345cdd239521c7 (patch)
tree298df568b27eb40ba05baccc6b07fca423497ec6 /sysdeps/x86
parentaf6dc56b8c313cb2fe2df53f92d1bc9d0a820368 (diff)
downloadglibc-501246c5e2dfcc278f0ebbdb72345cdd239521c7.zip
glibc-501246c5e2dfcc278f0ebbdb72345cdd239521c7.tar.gz
glibc-501246c5e2dfcc278f0ebbdb72345cdd239521c7.tar.bz2
x86: Use CHECK_FEATURE_PRESENT to check HLE [BZ #27398]
HLE is disabled on blacklisted CPUs. Use CHECK_FEATURE_PRESENT, instead of CHECK_FEATURE_ACTIVE, to check HLE.
Diffstat (limited to 'sysdeps/x86')
-rw-r--r--sysdeps/x86/tst-cpu-features-supports.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86/tst-cpu-features-supports.c b/sysdeps/x86/tst-cpu-features-supports.c
index 46b2c7b..9f10f02 100644
--- a/sysdeps/x86/tst-cpu-features-supports.c
+++ b/sysdeps/x86/tst-cpu-features-supports.c
@@ -130,7 +130,7 @@ do_test (int argc, char **argv)
fails += CHECK_FEATURE_ACTIVE (gfni, GFNI);
#endif
#if __GNUC_PREREQ (11, 0)
- fails += CHECK_FEATURE_ACTIVE (hle, HLE);
+ fails += CHECK_FEATURE_PRESENT (hle, HLE);
fails += CHECK_FEATURE_PRESENT (ibt, IBT);
fails += CHECK_FEATURE_ACTIVE (lahf_lm, LAHF64_SAHF64);
fails += CHECK_FEATURE_PRESENT (lm, LM);