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

<sys/platform/x86.h>: Add APX support

Add support for Intel Advanced Performance Extensions:

https://www.intel.com/content/www/us/en/developer/articles/technical/advanced-performance-extensions-apx.html

to <sys/platform/x86.h>.
This commit is contained in:
H.J. Lu
2023-07-26 08:20:16 -07:00
parent c8c8dbbf27
commit 1547d6a64f
5 changed files with 14 additions and 0 deletions

View File

@ -226,6 +226,10 @@ update_active (struct cpu_features *cpu_features)
CPU_FEATURE_SET_ACTIVE (cpu_features, AMX_COMPLEX);
}
/* APX is usable only if the APX state is supported by kernel. */
if ((xcrlow & bit_APX_state) != 0)
CPU_FEATURE_SET_ACTIVE (cpu_features, APX_F);
/* These features are usable only when OSXSAVE is enabled. */
CPU_FEATURE_SET (cpu_features, XSAVE);
CPU_FEATURE_SET_ACTIVE (cpu_features, XSAVEOPT);