armv7m: cache: add invalidate_icache_all() stub
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Tue, 26 Nov 2019 11:19:27 +0000 (12:19 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 3 Dec 2019 13:43:24 +0000 (08:43 -0500)
This commit:
https://gitlab.denx.de/u-boot/u-boot/commit/d409c962169bd293e39386d0ddfa64d5222a3be4
causes build failure with ICACHE enabled. This is due to missing
invalidate_icache_all() stub. Let's add empty invalidate_icache_all() in
the case where ICACHE is not enabled.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
arch/arm/cpu/armv7m/cache.c

index 6dc2ca8e73599d7e86bca68781d11d296c150fb6..f4ba3ad50e94f98bdd7fe9eccfce171da176d7f8 100644 (file)
@@ -332,6 +332,11 @@ void icache_disable(void)
        isb();  /* subsequent instructions fetch see cache disable effect */
 }
 #else
+void invalidate_icache_all(void)
+{
+       return;
+}
+
 void icache_enable(void)
 {
        return;