[libunwind] [libunwind][AArch64] Disable ZA before resuming from unwinding (on Linux) (PR #165451)
Benjamin Maxwell via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 10 03:50:34 PST 2025
================
@@ -827,6 +827,53 @@ DEFINE_LIBUNWIND_FUNCTION(__unw_getcontext)
ret
#endif
+//
+// extern "C" bool __libunwind_Registers_arm64_za_disable()
+//
+// On return:
+// success (true/false) is returned in x0
+//
+ .p2align 2
+DEFINE_LIBUNWIND_FUNCTION(__libunwind_Registers_arm64_za_disable)
+ // If TPIDR2_EL0 is null, the subroutine does nothing.
+ .inst 0xd53bd0b0 // mrs x16, TPIDR2_EL0
----------------
MacDue wrote:
Done :+1:
https://github.com/llvm/llvm-project/pull/165451
More information about the cfe-commits
mailing list