Skip to content

Commit

Permalink
add check for ARM_NEON64
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrewh committed Jan 11, 2025
1 parent cc08e6b commit 3575190
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions core/unix/signal_macos.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,16 @@ sigcontext_to_mcontext_simd(priv_mcontext_t *mc, sig_full_cxt_t *sc_full)
return;
mc->fpsr = fpc->__fpsr;
mc->fpcr = fpc->__fpcr;
for (int i = 0; i < proc_num_simd_registers(); i++) {
memcpy(&mc->simd[i].q, &fpc->__v[i], sizeof(mc->simd->q));
if (proc_has_feature(FEATURE_SVE)) {
/* XXX i#5383: SVE and SVE2 support for MACOS still missing.
*/
ASSERT_NOT_IMPLEMENTED(false);
} else {
/* ARM_NEON64 case.
*/
for (int i = 0; i < proc_num_simd_registers(); i++) {
memcpy(&mc->simd[i].q, &fpc->__v[i], sizeof(mc->simd->q));
}
}
#elif defined(X86)
/* We assume that _STRUCT_X86_FLOAT_STATE* matches exactly the first
Expand Down

0 comments on commit 3575190

Please sign in to comment.