diff mbox series

[4/7] sh: Add the old invalidate_icache_all function

Message ID 20240619212759.3456158-4-trini@konsulko.com
State Accepted
Commit 6912c9c2f9f1fc4d62ba33c41a07d137ab04d743
Delegated to: Tom Rini
Headers show
Series [1/7] m68k: Implement a default flush_dcache_all | expand

Commit Message

Tom Rini June 19, 2024, 9:27 p.m. UTC
Add the old invalidate_icache_all function that prints a warning that
was previously found in cmd/cache.c

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Marek Vasut <marex@denx.de>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
 arch/sh/cpu/sh4/cache.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Marek Vasut Sept. 10, 2024, 12:18 a.m. UTC | #1
On 6/19/24 11:27 PM, Tom Rini wrote:
> Add the old invalidate_icache_all function that prints a warning that
> was previously found in cmd/cache.c
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> Cc: Marek Vasut <marex@denx.de>
> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
> ---
>   arch/sh/cpu/sh4/cache.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/arch/sh/cpu/sh4/cache.c b/arch/sh/cpu/sh4/cache.c
> index f0cb39d6a923..d3c480e79ed2 100644
> --- a/arch/sh/cpu/sh4/cache.c
> +++ b/arch/sh/cpu/sh4/cache.c
> @@ -6,6 +6,7 @@
>   
>   #include <command.h>
>   #include <cpu_func.h>
> +#include <stdio.h>
>   #include <asm/cache.h>
>   #include <asm/io.h>
>   #include <asm/processor.h>
> @@ -100,6 +101,11 @@ void icache_disable(void)
>   	cache_control(CACHE_DISABLE);
>   }
>   
> +void invalidate_icache_all(void)
> +{
> +	puts("No arch specific invalidate_icache_all available!\n");
> +}
> +
>   int icache_status(void)
>   {
>   	return 0;

I just posted

sh: cache: Fill in invalidate_icache_all()
diff mbox series

Patch

diff --git a/arch/sh/cpu/sh4/cache.c b/arch/sh/cpu/sh4/cache.c
index f0cb39d6a923..d3c480e79ed2 100644
--- a/arch/sh/cpu/sh4/cache.c
+++ b/arch/sh/cpu/sh4/cache.c
@@ -6,6 +6,7 @@ 
 
 #include <command.h>
 #include <cpu_func.h>
+#include <stdio.h>
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/processor.h>
@@ -100,6 +101,11 @@  void icache_disable(void)
 	cache_control(CACHE_DISABLE);
 }
 
+void invalidate_icache_all(void)
+{
+	puts("No arch specific invalidate_icache_all available!\n");
+}
+
 int icache_status(void)
 {
 	return 0;