]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Skip XSAVE state size reset if ISA level requires XSAVE
authorFlorian Weimer <fweimer@redhat.com>
Fri, 28 Mar 2025 08:26:06 +0000 (09:26 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Sat, 29 Mar 2025 09:19:51 +0000 (10:19 +0100)
commit8fc492bb4234edc1a5e8c3b7f76ba345ea7109ec
tree6dd92f9f062ea69af2071de676efcfd2307029c9
parente5f5dfdda28def8362896bdb1748bb27dfc8be73
x86: Skip XSAVE state size reset if ISA level requires XSAVE

If we have to use XSAVE or XSAVEC trampolines, do not adjust the size
information they need.  Technically, it is an operator error to try to
run with -XSAVE,-XSAVEC on such builds, but this change here disables
some unnecessary code with higher ISA levels and simplifies testing.

Related to commit befe2d3c4dec8be2cdd01a47132e47bdb7020922
("x86-64: Don't use SSE resolvers for ISA level 3 or above").

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit 59585ddaa2d44f22af04bb4b8bd4ad1e302c4c02)
sysdeps/x86/cpu-features.c