JitCodeBuffer: Use __builtin___clear_cache instead of __clear_cache
The former exists on Android.
This commit is contained in:
parent
d520ca35eb
commit
2c645d9e93
|
@ -12,7 +12,7 @@ static void DoCacheFlush(u8* address, u32 len)
|
||||||
#if defined(Y_PLATFORM_WINDOWS)
|
#if defined(Y_PLATFORM_WINDOWS)
|
||||||
FlushInstructionCache(GetCurrentProcess(), address, len);
|
FlushInstructionCache(GetCurrentProcess(), address, len);
|
||||||
#elif defined(Y_COMPILER_GCC) || defined(Y_COMPILER_CLANG)
|
#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
|
#else
|
||||||
#error Unknown platform.
|
#error Unknown platform.
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue