From 1547d6a64f4b981a06fd46ee446425a32558f2d0 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 26 Jul 2023 08:20:16 -0700 Subject: : 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 . --- sysdeps/x86/cpu-features.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysdeps/x86/cpu-features.c') diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c index 9ac195810f..badf088874 100644 --- a/sysdeps/x86/cpu-features.c +++ b/sysdeps/x86/cpu-features.c @@ -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); -- cgit 1.4.1