mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 18:11:05 +00:00
Don't use __builtin___clear_cache on FreeBSD.
This commit is contained in:
parent
db646d5d2d
commit
2b15bcbb4f
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue