From 0ad992985c005d5f03685767988c3657ef6b4485 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Fri, 18 Oct 2019 16:36:50 +0200 Subject: [PATCH] Update jit_compiler_a64.cpp --- src/crypto/randomx/jit_compiler_a64.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/randomx/jit_compiler_a64.cpp b/src/crypto/randomx/jit_compiler_a64.cpp index 79e099a0d..586b407f7 100644 --- a/src/crypto/randomx/jit_compiler_a64.cpp +++ b/src/crypto/randomx/jit_compiler_a64.cpp @@ -107,12 +107,12 @@ JitCompilerA64::~JitCompilerA64() void sys_icache_invalidate(void *start, size_t len); #endif -static void clear_code_cache(void* p, size_t size) +static void clear_code_cache(char* p1, char* p2) { # ifdef HAVE_BUILTIN_CLEAR_CACHE - __builtin___clear_cache(p, size); + __builtin___clear_cache(p1, p2); # elif defined(ios_HOST_OS) || defined (darwin_HOST_OS) - sys_icache_invalidate(p, size); + sys_icache_invalidate(p1, static_cast(p2 - p1)); # endif }