]> 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>
Wed, 20 Aug 2025 18:09:07 +0000 (11:09 -0700)
commit2d34e48a2858ae901b4cf532a5d7a88931f1c149
treeca4282a41947e3454835059ac93b4ae4d27c2f9e
parente925c13e039df061c7bf48e458e9ea26fa3ca8a3
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