Does mprotect flush the instruction cache on ARM Linux?

Posted by Adam Goode on Stack Overflow See other posts from Stack Overflow or by Adam Goode
Published on 2010-05-06T00:50:12Z Indexed on 2010/05/06 1:08 UTC
Read the original article Hit count: 324

Filed under:
|
|
|
|

I am writing a JIT on ARM Linux that executes an instruction set that contains self-modifying code. The instruction set does not have any cache flush instructions (similar to x86 in that respect).

If I write out some code to a page and then call mprotect on that page, is that sufficient to invalidate the instruction cache? Or do I also need to use the cacheflush syscall on those pages?

© Stack Overflow or respective owner

Related posts about arm

Related posts about linux