u-boot-brain/arch/arc
Eugeniy Paltsev 9f0253c61a ARC: Cache: Add missing cache cleanup before cache disable
Add missing cache cleanup before cache disable:
 * Flush and invalidate L1 D$ before disabling. Flush and invalidate
   SLC before L1 D$ disabling (as it will be bypassed for data)
   Otherwise we can lose some data when we disable L1 D$ if this data
   isn't flushed to next level cache. Or we can get wrong data if L1 D$
   has some entries after enable which we modified when the L1 D$ was
   disabled.
 * Invalidate L1 I$ before disabling. Otherwise we can execute wrong
   instructions after L1 I$ enable if we modified any code when
   L1 I$ was disabled.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-03-21 17:06:55 +03:00
..
cpu arc: No need in sections defined in sources with newer tools 2016-08-05 12:50:25 +03:00
dts ARC: HSDK: DTS: Add cgu-clk node 2018-01-19 17:59:35 +03:00
include/asm ARC: Implement a function to sync and cleanup caches 2018-03-21 17:06:54 +03:00
lib ARC: Cache: Add missing cache cleanup before cache disable 2018-03-21 17:06:55 +03:00
config.mk arc: Eliminate unused code and data with GCC's garbage collector 2018-03-21 16:21:34 +03:00
Kconfig ARC: Move IOC enabling to compile-time options 2018-03-21 17:06:54 +03:00
Makefile arc: introduce separate section for interrupt vector table 2015-01-15 22:38:42 +03:00