[PATCH 05/10] microblaze: cache: split flush_cache() function

Michal Simek michal.simek at xilinx.com
Fri Apr 22 14:49:09 CEST 2022



On 4/11/22 18:26, Ovidiu Panait wrote:
> Factor out icache/dcache components from flush_cache() function. Call the
> newly added __flush_icache()/__flush_dcache() functions inside
> icache_disable() and dcache_disable(), respectively. There is no need to
> flush both caches when disabling a particular cache type.
> 
> Signed-off-by: Ovidiu Panait <ovpanait at gmail.com>
> ---
> 
>   arch/microblaze/cpu/cache.c | 55 ++++++++++++++++++++++---------------
>   1 file changed, 33 insertions(+), 22 deletions(-)
> 
> diff --git a/arch/microblaze/cpu/cache.c b/arch/microblaze/cpu/cache.c
> index b6bbc215b3..e362a34a79 100644
> --- a/arch/microblaze/cpu/cache.c
> +++ b/arch/microblaze/cpu/cache.c
> @@ -10,6 +10,34 @@
>   #include <asm/asm.h>
>   #include <asm/cache.h>
>   
> +static void __invalidate_icache(ulong addr, ulong size)
> +{
> +	if (CONFIG_IS_ENABLED(XILINX_MICROBLAZE0_USE_WIC)) {

when these macros are fixed changes are fine.

M


More information about the U-Boot mailing list