Reviewers: Mads Ager, Description: 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 Please review this at http://codereview.chromium.org/6526052/ SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/arm/cpu-arm.cc Index: src/arm/cpu-arm.cc =================================================================== --- src/arm/cpu-arm.cc (revision 6809) +++ src/arm/cpu-arm.cc (working copy) @@ -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
