Revision: 6829
Author: [email protected]
Date: Wed Feb 16 23:47:05 2011
Log: ARM: Don't try to flush the icache when there is nothing to flush

The simulator implementation of the icache did not like size being zero.

BUG=v8:1090
Review URL: http://codereview.chromium.org/6526052
http://code.google.com/p/v8/source/detail?r=6829

Modified:
 /branches/bleeding_edge/src/arm/cpu-arm.cc

=======================================
--- /branches/bleeding_edge/src/arm/cpu-arm.cc  Wed Jan 26 00:32:54 2011
+++ /branches/bleeding_edge/src/arm/cpu-arm.cc  Wed Feb 16 23:47:05 2011
@@ -50,6 +50,11 @@


 void CPU::FlushICache(void* start, size_t size) {
+  // Nothing to do flushing no instructions.
+  if (size == 0) {
+    return;
+  }
+
 #if defined (USE_SIMULATOR)
   // Not generating ARM instructions for C-code. This means that we are
   // building an ARM emulator based target.  We should notify the simulator

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to