Move helper for syncing data/instruction cache to lj_mcode.c.
Sync caches after dynamic code generation for FFI callbacks.
This commit is contained in:
@@ -1779,7 +1779,7 @@ void lj_asm_patchexit(jit_State *J, GCtrace *T, ExitNo exitno, MCode *target)
|
||||
}
|
||||
}
|
||||
lua_assert(cstart != NULL);
|
||||
asm_cache_flush(cstart, cend);
|
||||
lj_mcode_sync(cstart, cend);
|
||||
lj_mcode_patch(J, mcarea, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user