]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM: Fix cache flush/sync for exit stubs of JIT-compiled code.
authorMike Pall <mike>
Thu, 28 Feb 2013 16:51:16 +0000 (17:51 +0100)
committerMike Pall <mike>
Thu, 28 Feb 2013 16:51:16 +0000 (17:51 +0100)
src/lj_asm_arm.h

index afb1054e8854f05c46fae60910d1d1a8148053dc..196f797e99fb4f4a019fa02ab1078628b863e3f9 100644 (file)
@@ -91,6 +91,7 @@ static MCode *asm_exitstub_gen(ASMState *as, ExitNo group)
   *mxp++ = group*EXITSTUBS_PER_GROUP;
   for (i = 0; i < EXITSTUBS_PER_GROUP; i++)
     *mxp++ = ARMI_B|((-6-i)&0x00ffffffu);
+  lj_mcode_sync(as->mcbot, mxp);
   lj_mcode_commitbot(as->J, mxp);
   as->mcbot = mxp;
   as->mclim = as->mcbot + MCLIM_REDZONE;