]> git.dujemihanovic.xyz Git - u-boot.git/commit
microblaze: cache: improve dcache Kconfig options
authorOvidiu Panait <ovpanait@gmail.com>
Tue, 31 May 2022 18:14:26 +0000 (21:14 +0300)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:16:00 +0000 (14:16 +0200)
commitef0a592ae8e2961519510f48ffe48b655b31610a
tree2ca7f86b05e8c29a275ecceee3547b08083716b1
parent0ad71dc53af000609d4484a465e630e569e73d63
microblaze: cache: improve dcache Kconfig options

Replace CONFIG_DCACHE with a Kconfig option more limited in scope -
XILINX_MICROBLAZE0_USE_WDC. It should be enabled if the processor supports
the "wdc" (Write to Data Cache) instruction. It will be used to guard
"wdc" invocations in microblaze cache code.

Also, drop all ifdefs around flush_cache() calls and only keep one
CONFIG_IS_ENABLED() guard within flush_cache() itself.

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Link: https://lore.kernel.org/r/20220531181435.3473549-5-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/microblaze/Kconfig
arch/microblaze/cpu/cache.c
arch/microblaze/lib/bootm.c
board/xilinx/microblaze-generic/Kconfig