Index: src/ppc/cpu-ppc.cc |
diff --git a/src/ppc/cpu-ppc.cc b/src/ppc/cpu-ppc.cc |
index 079aa23403b280c534e91228cf9a0d7f1abc836d..a42fa53960cddf375ad0966b9d0de29dccacf08c 100644 |
--- a/src/ppc/cpu-ppc.cc |
+++ b/src/ppc/cpu-ppc.cc |
@@ -8,26 +8,12 @@ |
#include "src/assembler.h" |
#include "src/macro-assembler.h" |
-#include "src/simulator.h" // for cache flushing. |
namespace v8 { |
namespace internal { |
void CpuFeatures::FlushICache(void* buffer, size_t size) { |
- // Nothing to do flushing no instructions. |
- if (size == 0) { |
- return; |
- } |
- |
-#if defined(USE_SIMULATOR) |
- // Not generating PPC instructions for C-code. This means that we are |
- // building an PPC emulator based target. We should notify the simulator |
- // that the Icache was flushed. |
- // None of this code ends up in the snapshot so there are no issues |
- // around whether or not to generate the code when building snapshots. |
- Simulator::FlushICache(Isolate::Current()->simulator_i_cache(), buffer, size); |
-#else |
- |
+#if !defined(USE_SIMULATOR) |
if (CpuFeatures::IsSupported(INSTR_AND_DATA_CACHE_COHERENCY)) { |
__asm__ __volatile__( |
"sync \n" |
@@ -54,7 +40,7 @@ void CpuFeatures::FlushICache(void* buffer, size_t size) { |
: "r"(pointer)); |
} |
-#endif // USE_SIMULATOR |
+#endif // !USE_SIMULATOR |
} |
} // namespace internal |
} // namespace v8 |