Permalink
Browse files

eel2: use __clear_cache() on arm -- from b983711b

  • Loading branch information...
Cockos Inc Justin Frankel RMBP
Cockos Inc authored and Justin Frankel RMBP committed Jul 13, 2017
1 parent 8ee0fbc commit f3da4888fa8f975032fa38ac8b448e0365981b9c
Showing with 6 additions and 0 deletions.
  1. +6 −0 WDL/eel2/nseel-compiler.c
@@ -2624,6 +2624,9 @@ unsigned char *compileCodeBlockWithRet(compileContext *ctx, opcodeRec *rec, int
p+=GLUE_FUNC_LEAVE_SIZE;
#endif
memcpy(p,&GLUE_RET,sizeof(GLUE_RET)); p+=sizeof(GLUE_RET);
#ifdef __arm__
__clear_cache(newblock2,p);
#endif
ctx->l_stats[2]+=funcsz+2;
return newblock2;
@@ -4883,6 +4886,9 @@ NSEEL_CODEHANDLE NSEEL_code_compile_ex(NSEEL_VMCTX _ctx, const char *_expression
memcpy(writeptr,&GLUE_RET,sizeof(GLUE_RET)); writeptr += sizeof(GLUE_RET);
ctx->l_stats[1]=size;
handle->code_size = (int) (writeptr - (unsigned char *)handle->code);
#ifdef __arm__
__clear_cache(handle->code,writeptr);
#endif
}
handle->blocks = ctx->blocks_head;

0 comments on commit f3da488

Please sign in to comment.