]> git.baikalelectronics.ru Git - uboot.git/commit
sh4: cache: correct flush_cache() to writeback and invalidate
authorVladimir Zapolskiy <vz@mleia.com>
Sun, 27 Nov 2016 22:15:14 +0000 (00:15 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 3 Dec 2016 02:32:39 +0000 (21:32 -0500)
commitde32357561695704fb41f94efc851eafcd0cac0b
tree5beb5f9913038485f5b6746f0125c2dc4e2400c8
parenteeb435ef05dd9dcb9ae2f566bd1b78627844398f
sh4: cache: correct flush_cache() to writeback and invalidate

In common usecases flush_cache() assumes both cache invalidation and
write-back to memory, instead of doing cache invalidation only with
the wrapped 'ocbi' instruction pin flush_cache() to cache invalidation
with memory write-back done by 'ocbp'.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sh/cpu/sh4/cpu.c