aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-01-26 12:18:30 -0800
committerH.J. Lu <hjl.tools@gmail.com>2022-02-14 05:53:03 -0800
commit6229aa74fb47af17744d765cc49dbf94d3cefe12 (patch)
tree039a7f08de0052bdbdc1e0c3c9857bce1186a8e4 /sysdeps/x86
parent61a4425dd412701f6c3545d8c1acd7e1a378ee8b (diff)
downloadglibc-6229aa74fb47af17744d765cc49dbf94d3cefe12.zip
glibc-6229aa74fb47af17744d765cc49dbf94d3cefe12.tar.gz
glibc-6229aa74fb47af17744d765cc49dbf94d3cefe12.tar.bz2
x86: Use CHECK_FEATURE_PRESENT on PCONFIG
PCONFIG is a privileged instruction. Use CHECK_FEATURE_PRESENT, instead of CHECK_FEATURE_ACTIVE, on PCONFIG in tst-cpu-features-supports.c.
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 9f10f02..11065b6 100644
--- a/sysdeps/x86/tst-cpu-features-supports.c
+++ b/sysdeps/x86/tst-cpu-features-supports.c
@@ -143,7 +143,7 @@ do_test (int argc, char **argv)
fails += CHECK_FEATURE_ACTIVE (movdiri, MOVDIRI);
fails += CHECK_FEATURE_ACTIVE (movdir64b, MOVDIR64B);
fails += CHECK_FEATURE_ACTIVE (osxsave, OSXSAVE);
- fails += CHECK_FEATURE_ACTIVE (pconfig, PCONFIG);
+ fails += CHECK_FEATURE_PRESENT (pconfig, PCONFIG);
fails += CHECK_FEATURE_ACTIVE (pku, PKU);
#endif
fails += CHECK_FEATURE_ACTIVE (popcnt, POPCNT);