Skip to content

Commit

Permalink
[ppc32] delete leftover code from pre-monoctx area (#18072)
Browse files Browse the repository at this point in the history
Also update assert which doesn't make sense since we have moved over to MonoContext

Some context: e7011c7

Fixes: #18064
  • Loading branch information
lewurm committed Dec 6, 2019
1 parent 12bc471 commit 121928d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mono/mini/exceptions-ppc.c
Expand Up @@ -692,10 +692,7 @@ mono_arch_handle_altstack_exception (void *sigctx, MONO_SIG_HANDLER_INFO_TYPE *s
/* may need to adjust pointers in the new struct copy, depending on the OS */
uc_copy = (MonoContext*)(sp + 16);
mono_sigctx_to_monoctx (uc, uc_copy);
#if defined(__linux__) && !defined(__mono_ppc64__)
uc_copy->uc_mcontext.uc_regs = (gpointer)((char*)uc_copy + ((char*)uc->uc_mcontext.uc_regs - (char*)uc));
#endif
g_assert (mono_arch_ip_from_context (uc) == mono_arch_ip_from_context (uc_copy));
g_assert (mono_arch_ip_from_context (uc) == MONO_CONTEXT_GET_IP (uc_copy));
/* at the return form the signal handler execution starts in altstack_handle_and_restore() */
UCONTEXT_REG_LNK(uc) = UCONTEXT_REG_NIP(uc);
#ifdef PPC_USES_FUNCTION_DESCRIPTOR
Expand Down

0 comments on commit 121928d

Please sign in to comment.