Skip to contentSkip to conversation

sandbox: Add more dummy cache functions

PATCH In review Tom Rini 1 participant 2 messages Sep 25, 2025 – Oct 9, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 sandbox: Add more dummy cache functions

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.

---
 arch/sandbox/cpu/cpu.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/sandbox/cpu/cpu.c +17 -0
index 6db8739e66bb..b8fabd07d0b3 100644
@@ -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
  *
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

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.

Applied to u-boot/master, thanks!

[1/1] sandbox: Add more dummy cache functions

      commit: e5fea3f3b9f41c76287328223b934644fc50cbad
Signature · 1 line
Tom