diff --git a/src/crypto/randomx/jit_compiler_a64.cpp b/src/crypto/randomx/jit_compiler_a64.cpp index fda829bec..5c8bbea21 100644 --- a/src/crypto/randomx/jit_compiler_a64.cpp +++ b/src/crypto/randomx/jit_compiler_a64.cpp @@ -396,6 +396,10 @@ void JitCompilerA64::allocate(size_t size) code = static_cast(allocExecutableMemory(allocatedSize, hugePages)); memcpy(code, reinterpret_cast(randomx_program_aarch64), CodeSize); + +# ifndef XMRIG_OS_APPLE + xmrig::VirtualMemory::flushInstructionCache(reinterpret_cast(code), CodeSize); +# endif }