1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

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>
This commit is contained in:
H.J. Lu
2021-06-05 06:42:20 -07:00
parent 5b8d271571
commit 7c124e3714
14 changed files with 567 additions and 561 deletions

View File

@ -62,8 +62,8 @@ _dl_diagnostics_cpu (void)
cpu_features->features[index].cpuid_array[reg]);
for (unsigned int reg = 0; reg < 4; ++reg)
print_cpu_feature_internal
(index, "usable", reg,
cpu_features->features[index].usable_array[reg]);
(index, "active", reg,
cpu_features->features[index].active_array[reg]);
}
/* The preferred indicators are not part of the ABI and need to be