aboutsummaryrefslogtreecommitdiff
path: root/src/lj_asm_mips.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_asm_mips.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm_mips.h b/src/lj_asm_mips.h
index bc521596..346e0254 100644
--- a/src/lj_asm_mips.h
+++ b/src/lj_asm_mips.h
@@ -372,7 +372,7 @@ static void asm_retf(ASMState *as, IRIns *ir)
372{ 372{
373 Reg base = ra_alloc1(as, REF_BASE, RSET_GPR); 373 Reg base = ra_alloc1(as, REF_BASE, RSET_GPR);
374 void *pc = ir_kptr(IR(ir->op2)); 374 void *pc = ir_kptr(IR(ir->op2));
375 int32_t delta = 1+bc_a(*((const BCIns *)pc - 1)); 375 int32_t delta = 1+LJ_FR2+bc_a(*((const BCIns *)pc - 1));
376 as->topslot -= (BCReg)delta; 376 as->topslot -= (BCReg)delta;
377 if ((int32_t)as->topslot < 0) as->topslot = 0; 377 if ((int32_t)as->topslot < 0) as->topslot = 0;
378 irt_setmark(IR(REF_BASE)->t); /* Children must not coalesce with BASE reg. */ 378 irt_setmark(IR(REF_BASE)->t); /* Children must not coalesce with BASE reg. */