JitCodeBuffer: Use __builtin___clear_cache instead of __clear_cache

The former exists on Android.
This commit is contained in:
Connor McLaughlin 2019-12-04 20:33:00 +10:00
parent d520ca35eb
commit 2c645d9e93
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ static void DoCacheFlush(u8* address, u32 len)
#if defined(Y_PLATFORM_WINDOWS)
FlushInstructionCache(GetCurrentProcess(), address, len);
#elif defined(Y_COMPILER_GCC) || defined(Y_COMPILER_CLANG)
__clear_cache(address, address + len);
__builtin___clear_cache(reinterpret_cast<char*>(address), reinterpret_cast<char*>(address + len));
#else
#error Unknown platform.
#endif