u-boot-brain/arch/arc
Eugeniy Paltsev c877a8911d ARC: Cache: Allways check D$ status before entire/line ops
As we are planning to get rid of dozens of ifdef's in cache.c we
would better check D$ status before each entire/line operation
then check CONFIG_SYS_DCACHE_OFF config option.

This makes the code cleaner as well as D$ entire/line functions
remain functional even if we enable or disable D$ in run-time.

As we need to check status before *each* function execution and we
call D$ entire/line functions from different places we add
this check directly into D$ entire/line functions instead of
their callers to avoid code duplication.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-03-21 17:06:54 +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: Move BCR encodings to separate header file 2018-03-21 17:06:54 +03:00
lib ARC: Cache: Allways check D$ status before entire/line ops 2018-03-21 17:06:54 +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: Add support for HS Development Kit board 2017-06-29 19:34:10 +03:00
Makefile arc: introduce separate section for interrupt vector table 2015-01-15 22:38:42 +03:00