1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-06 23:52:38 -05:00

Don't use __builtin___clear_cache on FreeBSD.

This commit is contained in:
XMRig
2019-01-16 17:53:47 +07:00
parent db646d5d2d
commit 2b15bcbb4f

View File

@@ -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<char*>(p), reinterpret_cast<char*>(p) + size);
# endif
}