diff --git a/src/Mem_unix.cpp b/src/Mem_unix.cpp index 7db761aeb..a30d9f720 100644 --- a/src/Mem_unix.cpp +++ b/src/Mem_unix.cpp @@ -102,5 +102,7 @@ void *Mem::allocateExecutableMemory(size_t size) void Mem::flushInstructionCache(void *p, size_t size) { +# ifndef __FreeBSD__ __builtin___clear_cache(reinterpret_cast(p), reinterpret_cast(p) + size); +# endif }