mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-05 16:07:42 +00:00
Fixed __builtin___clear_cache detection
This commit is contained in:
parent
a56febcd13
commit
5611249af7
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ void sys_icache_invalidate(void *start, size_t len);
|
||||||
|
|
||||||
static void clear_code_cache(char* p1, char* p2)
|
static void clear_code_cache(char* p1, char* p2)
|
||||||
{
|
{
|
||||||
# ifdef HAVE_BUILTIN_CLEAR_CACHE
|
# if defined (HAVE_BUILTIN_CLEAR_CACHE) || defined (__GNUC__)
|
||||||
__builtin___clear_cache(p1, p2);
|
__builtin___clear_cache(p1, p2);
|
||||||
# elif defined(ios_HOST_OS) || defined (darwin_HOST_OS)
|
# elif defined(ios_HOST_OS) || defined (darwin_HOST_OS)
|
||||||
sys_icache_invalidate(p1, static_cast<size_t>(p2 - p1));
|
sys_icache_invalidate(p1, static_cast<size_t>(p2 - p1));
|
||||||
|
|
Loading…
Reference in a new issue