summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-09-25 14:51:28 -0600
committerTom Rini <[email protected]>2025-10-08 16:12:46 -0600
commite5fea3f3b9f41c76287328223b934644fc50cbad (patch)
tree9b0b407640227b174c332bed17344a89006d9f1e
parent93dbdf389848310afd769a45f7a043e4a19c1b2d (diff)
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. Signed-off-by: Tom Rini <[email protected]>
-rw-r--r--arch/sandbox/cpu/cpu.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c
index 6db8739e66b..b8fabd07d0b 100644
--- a/arch/sandbox/cpu/cpu.c
+++ b/arch/sandbox/cpu/cpu.c
@@ -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
*