Clang uses __clear_cache instead of __builtin___clear_cache like GCC

This commit is contained in:
Ryan Houdek 2013-04-18 22:50:58 -05:00
parent d524781657
commit d68955c539
1 changed files with 4 additions and 0 deletions

View File

@ -301,8 +301,12 @@ void ARMXEmitter::FlushIcacheSection(u8 *start, u8 *end)
// Header file says this is equivalent to: sys_icache_invalidate(start, end - start); // Header file says this is equivalent to: sys_icache_invalidate(start, end - start);
sys_cache_control(kCacheFunctionPrepareForExecution, start, end - start); sys_cache_control(kCacheFunctionPrepareForExecution, start, end - start);
#elif !defined(_WIN32) #elif !defined(_WIN32)
#ifdef __clang__
__clear_cache(start, end);
#else
__builtin___clear_cache(start, end); __builtin___clear_cache(start, end);
#endif #endif
#endif
} }
void ARMXEmitter::SetCC(CCFlags cond) void ARMXEmitter::SetCC(CCFlags cond)