* src/vm/jit/codegen-common.h (codegen_finish_native_call): Changes signature.
[cacao.git] / src / vm / jit / alpha / codegen.c
index 73c4aedc3af2a7d964f8398cb318c303f4007055..a5fe6b0adae9245b8ae4837c81af0549ddac7a3b 100644 (file)
@@ -3506,7 +3506,8 @@ void codegen_emit_stub_native(jitdata *jd, methoddesc *nmd, functionptr f)
 
        /* remove native stackframe info */
 
-       M_LDA(REG_A0, REG_SP, cd->stackframesize * 8 - SIZEOF_VOID_P);
+       M_MOV(REG_SP, REG_A0);
+       M_MOV(REG_PV, REG_A1);
        disp = dseg_add_functionptr(cd, codegen_finish_native_call);
        M_ALD(REG_PV, REG_PV, disp);
        M_JSR(REG_RA, REG_PV);