public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] x86-64: Save APX registers in ld.so trampoline
@ 2024-02-12  0:46 H.J. Lu
  2024-02-12 18:16 ` Noah Goldstein
  0 siblings, 1 reply; 3+ messages in thread
From: H.J. Lu @ 2024-02-12  0:46 UTC (permalink / raw)
  To: libc-alpha; +Cc: fweimer

Remove bound registers from STATE_SAVE_MASK and add APX registers to
STATE_SAVE_MASK so that APX registers are saved in ld.so trampoline.
This fixes BZ #31371.
---
 sysdeps/x86/sysdep.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/x86/sysdep.h b/sysdeps/x86/sysdep.h
index 85d0a8c943..9877a3a46f 100644
--- a/sysdeps/x86/sysdep.h
+++ b/sysdeps/x86/sysdep.h
@@ -26,9 +26,9 @@
    aligned to 16 bytes for fxsave and 64 bytes for xsave.  */
 #define STATE_SAVE_OFFSET (8 * 7 + 8)
 
-/* Save SSE, AVX, AVX512, mask and bound registers.  */
+/* Save SSE, AVX, AVX512, mask and APX registers.  */
 #define STATE_SAVE_MASK \
-  ((1 << 1) | (1 << 2) | (1 << 3) | (1 << 5) | (1 << 6) | (1 << 7))
+  ((1 << 1) | (1 << 2) | (1 << 5) | (1 << 6) | (1 << 7) | (1 << 19))
 
 /* Constants for bits in __x86_string_control:  */
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-02-13  4:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-12  0:46 [PATCH] x86-64: Save APX registers in ld.so trampoline H.J. Lu
2024-02-12 18:16 ` Noah Goldstein
2024-02-13  4:18   ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).