[libunwind] [libunwind][AArch64] Disable ZA before resuming from unwinding (on Linux) (PR #165451)
Sander de Smalen via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 10 02:18:55 PST 2025
================
@@ -827,6 +827,54 @@ 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 just disables ZA.
----------------
sdesmalen-arm wrote:
Some discrepancies with the compiler-rt version, is that this one does not have the `.variant_pcs` directive and BTI hint. Do those need adding?
https://github.com/llvm/llvm-project/pull/165451
More information about the cfe-commits
mailing list