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
}