diff options
author | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2019-11-26 12:19:27 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-03 08:43:24 -0500 |
commit | 1b3d24b7351b0a19cfcfe17bc2f5d654c5a2ebcd (patch) | |
tree | f8ecb2764466b8be98b340ec36e028463f17681e /arch/arm | |
parent | 78b7aa455aabcdbc987cea283594fb7d74858544 (diff) |
armv7m: cache: add invalidate_icache_all() stub
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/cpu/armv7m/cache.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c index 6dc2ca8e73..f4ba3ad50e 100644 --- a/arch/arm/cpu/armv7m/cache.c +++ b/arch/arm/cpu/armv7m/cache.c @@ -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; |