From: Michael Starzinger Date: Wed, 20 May 2009 14:43:41 +0000 (+0200) Subject: * src/vm/jit/mips/codegen.c (codegen_emit): Fixed minor problem in ICMD_ATHROW. X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=cacao.git;a=commitdiff_plain;h=31f04acae798907d785251db3c6a6dd12a7d9aa8 * src/vm/jit/mips/codegen.c (codegen_emit): Fixed minor problem in ICMD_ATHROW. --- diff --git a/src/vm/jit/mips/codegen.c b/src/vm/jit/mips/codegen.c index 4db7b0d74..890c7cd96 100644 --- a/src/vm/jit/mips/codegen.c +++ b/src/vm/jit/mips/codegen.c @@ -2256,9 +2256,11 @@ bool codegen_emit(jitdata *jd) } #endif /* ENABLE_VERIFIER */ + // Some processor implementations seem to have a problem when using + // the JALR instruction with (reg_dest == reg_src), so avoid that. disp = dseg_add_functionptr(cd, asm_handle_exception); - M_ALD(REG_ITMP2, REG_PV, disp); - M_JSR(REG_ITMP2_XPC, REG_ITMP2); + M_ALD(REG_ITMP3, REG_PV, disp); + M_JSR(REG_ITMP2_XPC, REG_ITMP3); M_NOP; M_NOP; /* nop ensures that XPC is less than the end */ /* of basic block */