Skip to content
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
Prev Previous commit
Next Next commit
[ppc64le] Fixed stack unwinding issue
  • Loading branch information
alhad-deshpande committed Aug 29, 2022
commit a5b1c7c96c2dd47c3ca704eea6ed0fdaa5bd6bbb
4 changes: 2 additions & 2 deletions src/mono/mono/mini/exceptions-ppc.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,9 +564,9 @@ mono_arch_unwind_frame (MonoJitTlsData *jit_tls,

unwind_info = mono_jinfo_get_unwind_info (ji, &unwind_info_len);

sframe = (MonoPPCStackFrame*)MONO_CONTEXT_GET_SP (ctx);
MONO_CONTEXT_SET_BP (new_ctx, sframe->sp);
if (!ji->is_trampoline && jinfo_get_method (ji)->save_lmf) {
sframe = (MonoPPCStackFrame*)MONO_CONTEXT_GET_SP (ctx);
MONO_CONTEXT_SET_BP (new_ctx, sframe->sp);
/* sframe->sp points just past the end of the LMF */
guint8 *lmf_addr = (guint8*)sframe->sp - sizeof (MonoLMF);
memcpy (&new_ctx->fregs [MONO_PPC_FIRST_SAVED_FREG], lmf_addr + G_STRUCT_OFFSET (MonoLMF, fregs), sizeof (double) * MONO_SAVED_FREGS);
Expand Down