Skip to content

Commit

Permalink
fix(aarch64): replace fp-armv8 with neon
Browse files Browse the repository at this point in the history
`fp-armv8` is an arm feature, not an aarch64 feature.
  • Loading branch information
lylythechosenone authored and nbdd0121 committed Jun 13, 2024
1 parent 34dd270 commit ac07eba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/unwinder/arch/aarch64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
}

0 comments on commit ac07eba

Please sign in to comment.