From db035738046aab3f4edfbe2d17acf297b691b4ac Mon Sep 17 00:00:00 2001 From: SChernykh Date: Mon, 1 Feb 2021 22:42:35 +0100 Subject: [PATCH] ARM JIT: added missing cache flush --- src/crypto/randomx/jit_compiler_a64.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 }