diff options
author | Mike Pall <mike> | 2021-09-19 16:09:48 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2021-09-19 16:09:48 +0200 |
commit | f2d333c1ac0f33fe5a7386d4e66f0f6c57c2616e (patch) | |
tree | 5864c58bf82417de940bcce64767d1212fdcb429 /src/lj_asm.c | |
parent | 8ff09d9f5ad5b037926be2a50dc32b681c5e7597 (diff) | |
download | luajit-f2d333c1ac0f33fe5a7386d4e66f0f6c57c2616e.tar.gz luajit-f2d333c1ac0f33fe5a7386d4e66f0f6c57c2616e.tar.bz2 luajit-f2d333c1ac0f33fe5a7386d4e66f0f6c57c2616e.zip |
MIPS: Fix trace linking.
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r-- | src/lj_asm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index b0e6d313..1ecbe45e 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -2550,7 +2550,9 @@ void lj_asm_trace(jit_State *J, GCtrace *T) | |||
2550 | /* Set trace entry point before fixing up tail to allow link to self. */ | 2550 | /* Set trace entry point before fixing up tail to allow link to self. */ |
2551 | T->mcode = as->mcp; | 2551 | T->mcode = as->mcp; |
2552 | T->mcloop = as->mcloop ? (MSize)((char *)as->mcloop - (char *)as->mcp) : 0; | 2552 | T->mcloop = as->mcloop ? (MSize)((char *)as->mcloop - (char *)as->mcp) : 0; |
2553 | if (!as->loopref) | 2553 | if (as->loopref) |
2554 | asm_loop_tail_fixup(as); | ||
2555 | else | ||
2554 | asm_tail_fixup(as, T->link); /* Note: this may change as->mctop! */ | 2556 | asm_tail_fixup(as, T->link); /* Note: this may change as->mctop! */ |
2555 | T->szmcode = (MSize)((char *)as->mctop - (char *)as->mcp); | 2557 | T->szmcode = (MSize)((char *)as->mctop - (char *)as->mcp); |
2556 | asm_snap_fixup_mcofs(as); | 2558 | asm_snap_fixup_mcofs(as); |