Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 3 additions & 4 deletions src/mono/mono/mini/exceptions-s390x.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@

#include "mini.h"
#include "mini-s390x.h"
#include "support-s390x.h"
#include "mini-runtime.h"
#include "aot-runtime.h"
#include "mono/utils/mono-tls-inline.h"
Expand Down Expand Up @@ -119,7 +118,7 @@ mono_arch_get_call_filter (MonoTrampInfo **info, gboolean aot)

inited = 1;
/* call_filter (MonoContext *ctx, unsigned long eip, gpointer exc) */
code = start = mono_global_codeman_reserve (512);
code = start = (guint8 *) mono_global_codeman_reserve (512);

mono_add_unwind_op_def_cfa (unwind_ops, code, start, STK_BASE, S390_CFA_OFFSET);
s390_stmg (code, s390_r6, s390_r15, STK_BASE, S390_REG_SAVE_OFFSET);
Expand Down Expand Up @@ -314,7 +313,7 @@ mono_arch_get_throw_exception_generic (int size, MonoTrampInfo **info, int corli
MonoJumpInfo *ji = NULL;
GSList *unwind_ops = NULL;

code = start = mono_global_codeman_reserve(size);
code = start = (guint8 *) mono_global_codeman_reserve(size);

mono_add_unwind_op_def_cfa (unwind_ops, code, start, STK_BASE, S390_CFA_OFFSET);
s390_stmg (code, s390_r6, s390_r15, STK_BASE, S390_REG_SAVE_OFFSET);
Expand Down Expand Up @@ -569,7 +568,7 @@ mono_arch_unwind_frame (MonoJitTlsData *jit_tls,
memcpy(new_ctx->uc_mcontext.fpregs.fprs, (*lmf)->fregs, sizeof((*lmf)->fregs));
MONO_CONTEXT_SET_BP (new_ctx, (*lmf)->ebp);
MONO_CONTEXT_SET_IP (new_ctx, (*lmf)->eip - 2);
*lmf = (*lmf)->previous_lmf;
*lmf = (struct MonoLMF *) (*lmf)->previous_lmf;

return TRUE;
}
Expand Down
Loading