]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
sandbox: Add more dummy cache functions
authorTom Rini <trini@konsulko.com>
Thu, 25 Sep 2025 20:51:28 +0000 (14:51 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 8 Oct 2025 22:12:46 +0000 (16:12 -0600)
In order for cmd/cache.c to link we need to add dummy icache functions
to mirror the dummy dcache functions as well as another dcache flush
function.

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/sandbox/cpu/cpu.c

index 6db8739e66bbc1b3c054893ff34fb5f1795c8ead..b8fabd07d0b3862c3b0e8eccb4aae4492b78ab3f 100644 (file)
@@ -335,6 +335,10 @@ int dcache_status(void)
        return 1;
 }
 
+void flush_dcache_all(void)
+{
+}
+
 void flush_dcache_range(unsigned long start, unsigned long stop)
 {
 }
@@ -343,6 +347,19 @@ void invalidate_dcache_range(unsigned long start, unsigned long stop)
 {
 }
 
+void icache_enable(void)
+{
+}
+
+void icache_disable(void)
+{
+}
+
+int icache_status(void)
+{
+       return 1;
+}
+
 /**
  * setup_auto_tree() - Set up a basic device tree to allow sandbox to work
  *