sh: Account for cache aliases in flush_icache_range()
authorMatt Fleming <matt@console-pimps.org>
Thu, 5 Nov 2009 23:14:39 +0000 (23:14 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 9 Nov 2009 01:45:30 +0000 (10:45 +0900)
commita9d244a2ff163247b607c4bb64803230ca8f8acb
tree152adba285f057c201c8d6c1993cfb19e96622f6
parent421b541110b20ccff1a7ff3245439cb24efe9812
sh: Account for cache aliases in flush_icache_range()

The icache may also contain aliases so we must account for them just
like we do when manipulating the dcache. We usually get away with
aliases in the icache because the instructions that are read from memory
are read-only, i.e. they never change. However, the place where this
bites us is when the code has been modified.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/cache-sh4.c