From: sgjesse@chromium.org Date: Thu, 17 Feb 2011 07:47:05 +0000 (+0000) Subject: ARM: Don't try to flush the icache when there is nothing to flush X-Git-Tag: upstream/4.7.83~20177 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd0744844e080149c522d6a2334fd7e960a6b6ba;p=platform%2Fupstream%2Fv8.git 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 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6829 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/arm/cpu-arm.cc b/src/arm/cpu-arm.cc index 507954d..51c84b3 100644 --- a/src/arm/cpu-arm.cc +++ b/src/arm/cpu-arm.cc @@ -50,6 +50,11 @@ void CPU::Setup() { 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