x86: Install <bits/platform/x86.h> [BZ #27958]
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 5 Jun 2021 13:42:20 +0000 (06:42 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 23 Jul 2021 12:12:51 +0000 (05:12 -0700)
commit7c124e3714c38157230ed1a5d743b37defe64dc2
treef1e13e18239c4421675234b56d880ae081d4bdcd
parent5b8d271571434a74b2464c278eafe2ff81f31029
x86: Install <bits/platform/x86.h> [BZ #27958]

1. Install <bits/platform/x86.h> for <sys/platform/x86.h> which includes
<bits/platform/x86.h>.
2. Rename HAS_CPU_FEATURE to CPU_FEATURE_PRESENT which checks if the
processor has the feature.
3. Rename CPU_FEATURE_USABLE to CPU_FEATURE_ACTIVE which checks if the
feature is active.  There may be other preconditions, like sufficient
stack space or further setup for AMX, which must be satisfied before the
feature can be used.

This fixes BZ #27958.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
14 files changed:
manual/platform.texi
sysdeps/x86/Makefile
sysdeps/x86/bits/platform/x86.h
sysdeps/x86/cpu-features.c
sysdeps/x86/dl-diagnostics-cpu.c
sysdeps/x86/include/cpu-features.h
sysdeps/x86/sys/platform/x86.h
sysdeps/x86/tst-cet-legacy-10.c
sysdeps/x86/tst-cpu-features-cpuinfo.c
sysdeps/x86/tst-cpu-features-supports.c
sysdeps/x86/tst-get-cpu-features.c
sysdeps/x86/tst-ifunc-isa.h
sysdeps/x86/tst-string-rtm.h
sysdeps/x86_64/fpu/math-tests-arch.h