diff options
Diffstat (limited to 'src/lj_emit_mips.h')
-rw-r--r-- | src/lj_emit_mips.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lj_emit_mips.h b/src/lj_emit_mips.h index 59f0640b..3edf8851 100644 --- a/src/lj_emit_mips.h +++ b/src/lj_emit_mips.h | |||
@@ -146,6 +146,12 @@ static void emit_branch(ASMState *as, MIPSIns mi, Reg rs, Reg rt, MCode *target) | |||
146 | as->mcp = p; | 146 | as->mcp = p; |
147 | } | 147 | } |
148 | 148 | ||
149 | static void emit_jmp(ASMState *as, MCode *target) | ||
150 | { | ||
151 | *--as->mcp = MIPSI_NOP; | ||
152 | emit_branch(as, MIPSI_B, RID_ZERO, RID_ZERO, (target)); | ||
153 | } | ||
154 | |||
149 | static void emit_call(ASMState *as, void *target) | 155 | static void emit_call(ASMState *as, void *target) |
150 | { | 156 | { |
151 | MCode *p = as->mcp; | 157 | MCode *p = as->mcp; |