Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i#5383: Fix macOS preload on a64 #7170

Merged
merged 21 commits into from
Jan 16, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
ndrewh marked this conversation as resolved.
Show resolved Hide resolved
} 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
Loading