mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
MIPS: Fix cache flush/sync for JIT-compiled code jump area.
This commit is contained in:
parent
3e286c1e72
commit
78c97bc5a1
@ -71,6 +71,7 @@ static void asm_sparejump_setup(ASMState *as)
|
|||||||
memset(mxp+2, 0, MIPS_SPAREJUMP*8);
|
memset(mxp+2, 0, MIPS_SPAREJUMP*8);
|
||||||
mxp += MIPS_SPAREJUMP*2;
|
mxp += MIPS_SPAREJUMP*2;
|
||||||
lua_assert(mxp < as->mctop);
|
lua_assert(mxp < as->mctop);
|
||||||
|
lj_mcode_sync(as->mcbot, mxp);
|
||||||
lj_mcode_commitbot(as->J, mxp);
|
lj_mcode_commitbot(as->J, mxp);
|
||||||
as->mcbot = mxp;
|
as->mcbot = mxp;
|
||||||
as->mclim = as->mcbot + MCLIM_REDZONE;
|
as->mclim = as->mcbot + MCLIM_REDZONE;
|
||||||
|
Loading…
Reference in New Issue
Block a user