]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Optimize xstate size calculation
authorSunil K Pandey <skpgkp2@gmail.com>
Thu, 3 Apr 2025 20:00:45 +0000 (13:00 -0700)
committerSunil K Pandey <sunil.k.pandey@intel.com>
Sat, 12 Apr 2025 19:22:17 +0000 (12:22 -0700)
commit7c6bd71b4dbdadab34e4fd21ec09b86b32daf443
tree6a7d665cd8b22d12179b269a5f76b5ad47d74b77
parent8fe27af20c8b25b84e12bcd52353862a95044aa2
x86: Optimize xstate size calculation

Scan xstate IDs up to the maximum supported xstate ID.  Remove the
separate AMX xstate calculation.  Instead, exclude the AMX space from
the start of TILECFG to the end of TILEDATA in xsave_state_size.

Completed validation on SKL/SKX/SPR/SDE and compared xsave state size
with "ld.so --list-diagnostics" option, no regression.

Co-Authored-By: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>
(cherry picked from commit 70b648855185e967e54668b101d24704c3fb869d)
sysdeps/x86/cpu-features.c
sysdeps/x86/sysdep.h