]> git.dujemihanovic.xyz Git - u-boot.git/commit
sh: cache: don't modify CCR from P1 area
authorVladimir Zapolskiy <vz@mleia.com>
Sun, 27 Nov 2016 22:15:17 +0000 (00:15 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 3 Dec 2016 02:32:41 +0000 (21:32 -0500)
commit6ab8b961de4e883dc61fb7dfd22a9ac7ab359250
tree9a3520d60ac2793a42ec5dbb32ba6ede0c14add4
parentc230a378381475acbaeed6f16a45e44c6c92e2c1
sh: cache: don't modify CCR from P1 area

cache_wback_all() is a local function and it is called from
cache_control() only, which is in turn jumps to P2 area.

The change fixes an issue when cache_wback_all() returns from P2 to
P1, however cache_control() continues to manipulate with CCR
register, according to the User's Manual this is restricted.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
arch/sh/cpu/sh4/cache.c