From: Henrik =?ISO-8859-1?Q?Nordstr=F6m?= Date: Mon, 26 Nov 2012 00:14:50 +0100 Subject: [U-Boot] [PATCH] ARM v7: Flush icache when executing a program with go In-Reply-To: <20121125174120.248DE20105B@gemini.denx.de> References: <1353842010.17518.3.camel@home.hno.se> <20121125174120.248DE20105B@gemini.denx.de> Message-ID: <1353885290.28559.65.camel@home.hno.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de s?n 2012-11-25 klockan 18:41 +0100 skrev Wolfgang Denk: > Dear Henrik Nordstr?m, > > In message <1353842010.17518.3.camel@home.hno.se> you wrote: > > ARM v7 runs with icache enabled. For reliable results the go command > > needs to flush the icache before jumping or it may risk running > > cached instructions that differ from what currently is in memory. > > This should never be an architecutre specific thing. Whether we flush > caches or not should be the same on all architectures. Agreed. But this needs some "flush icache if supported & enabled for current arch" function that do not yell loudly if icache not supported/enabled. invalidate_icache_all() yells loudly if not implememented by the current arch. Regards Henrik