From 31f04acae798907d785251db3c6a6dd12a7d9aa8 Mon Sep 17 00:00:00 2001 From: Michael Starzinger Date: Wed, 20 May 2009 16:43:41 +0200 Subject: [PATCH] * src/vm/jit/mips/codegen.c (codegen_emit): Fixed minor problem in ICMD_ATHROW. --- src/vm/jit/mips/codegen.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */ -- 2.25.1