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:
@ -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);
|
||||
|
Reference in New Issue
Block a user