Clang uses __clear_cache instead of __builtin___clear_cache like GCC
This commit is contained in:
parent
d524781657
commit
d68955c539
|
@ -301,8 +301,12 @@ void ARMXEmitter::FlushIcacheSection(u8 *start, u8 *end)
|
|||
// Header file says this is equivalent to: sys_icache_invalidate(start, end - start);
|
||||
sys_cache_control(kCacheFunctionPrepareForExecution, start, end - start);
|
||||
#elif !defined(_WIN32)
|
||||
#ifdef __clang__
|
||||
__clear_cache(start, end);
|
||||
#else
|
||||
__builtin___clear_cache(start, end);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
void ARMXEmitter::SetCC(CCFlags cond)
|
||||
|
|
Loading…
Reference in New Issue