From ac07eba737a5263ea014d75cb27451e4a4525790 Mon Sep 17 00:00:00 2001 From: Lysander Mealy Date: Wed, 12 Jun 2024 08:40:24 -0400 Subject: [PATCH] fix(aarch64): replace `fp-armv8` with `neon` `fp-armv8` is an arm feature, not an aarch64 feature. --- src/unwinder/arch/aarch64.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/unwinder/arch/aarch64.rs b/src/unwinder/arch/aarch64.rs index d7fe7b7..7c8a49b 100644 --- a/src/unwinder/arch/aarch64.rs +++ b/src/unwinder/arch/aarch64.rs @@ -102,9 +102,9 @@ macro_rules! save { #[naked] pub extern "C-unwind" fn save_context(f: extern "C" fn(&mut Context, *mut ()), ptr: *mut ()) { unsafe { - #[cfg(target_feature = "fp-armv8")] + #[cfg(target_feature = "neon")] save!(gp, fp); - #[cfg(not(target_feature = "fp-armv8"))] + #[cfg(not(target_feature = "neon"))] save!(gp); } } @@ -163,9 +163,9 @@ macro_rules! restore { pub unsafe fn restore_context(ctx: &Context) -> ! { unsafe { - #[cfg(target_feature = "fp-armv8")] + #[cfg(target_feature = "neon")] restore!(ctx, gp, fp); - #[cfg(not(target_feature = "fp-armv8"))] + #[cfg(not(target_feature = "neon"))] restore!(ctx, gp); } }