Index: src/arm64/cpu-arm64.cc |
diff --git a/src/arm64/cpu-arm64.cc b/src/arm64/cpu-arm64.cc |
index 39beb6d9ef86342a4bf470a5ec329023b1795a5e..11ba7c98a0d20764f3a775e4fc66dfa083b13e13 100644 |
--- a/src/arm64/cpu-arm64.cc |
+++ b/src/arm64/cpu-arm64.cc |
@@ -43,6 +43,8 @@ class CacheLineSizes { |
void CpuFeatures::FlushICache(void* address, size_t length) { |
if (length == 0) return; |
+ if (CpuFeatures::IsSupported(COHERENT_CACHE)) return; |
+ |
#ifdef USE_SIMULATOR |
// TODO(all): consider doing some cache simulation to ensure every address |
// run has been synced. |