| Index: src/mips/cpu-mips.cc
|
| diff --git a/src/mips/cpu-mips.cc b/src/mips/cpu-mips.cc
|
| index dff1d3040249a0831573befdd5e18cc64a5eeed7..1199365b7d2479dad3883527ad7ad17037bed6b3 100644
|
| --- a/src/mips/cpu-mips.cc
|
| +++ b/src/mips/cpu-mips.cc
|
| @@ -23,12 +23,12 @@ namespace internal {
|
|
|
|
|
| void CpuFeatures::FlushICache(void* start, size_t size) {
|
| +#if !defined(USE_SIMULATOR)
|
| // Nothing to do, flushing no instructions.
|
| if (size == 0) {
|
| return;
|
| }
|
|
|
| -#if !defined (USE_SIMULATOR)
|
| #if defined(ANDROID)
|
| // Bionic cacheflush can typically run in userland, avoiding kernel call.
|
| char *end = reinterpret_cast<char *>(start) + size;
|
| @@ -42,14 +42,7 @@ void CpuFeatures::FlushICache(void* start, size_t size) {
|
| V8_Fatal(__FILE__, __LINE__, "Failed to flush the instruction cache");
|
| }
|
| #endif // ANDROID
|
| -#else // USE_SIMULATOR.
|
| - // Not generating mips instructions for C-code. This means that we are
|
| - // building a mips 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(), start, size);
|
| -#endif // USE_SIMULATOR.
|
| +#endif // !USE_SIMULATOR.
|
| }
|
|
|
| } // namespace internal
|
|
|