From d68955c5390995efaac4ba30feff3d6ba904dda6 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 18 Apr 2013 22:50:58 -0500 Subject: [PATCH] Clang uses __clear_cache instead of __builtin___clear_cache like GCC --- Source/Core/Common/Src/ArmEmitter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/Common/Src/ArmEmitter.cpp b/Source/Core/Common/Src/ArmEmitter.cpp index c511735115..a8d0fcc92a 100644 --- a/Source/Core/Common/Src/ArmEmitter.cpp +++ b/Source/Core/Common/Src/ArmEmitter.cpp @@ -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)