]> 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)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 5 Apr 2025 14:51:38 +0000 (07:51 -0700)
commit70b648855185e967e54668b101d24704c3fb869d
tree9c6f41f6ded189ec3de35dcddb3a4aa4652294ad
parent8322e93dcdf08d38977f3e9b771c7c1f6dc74542
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>
sysdeps/x86/cpu-features.c
sysdeps/x86/sysdep.h