risc-v/litex: Implement up_flush_dcache_all when CONFIG_ARCH_DCACHE is defined.

This duplicates the up_invalidate_dcache_all as vexriscv's DBUS cache
does not distinguish between flushing and invalidation.

Signed-off-by: Justin Erenkrantz <justin@erenkrantz.com>
This commit is contained in:
Justin Erenkrantz
2025-12-26 09:41:13 -05:00
committed by Alan C. Assis
parent 8896242b9d
commit f10cf58d6b
+22
View File
@@ -56,6 +56,28 @@ up_invalidate_dcache_all:
.word 0x500F
#endif
/****************************************************************************
* Name: up_flush_dcache_all
*
* Description:
* Flush the entire contents of D cache.
*
* Input Parameters:
* None
*
* Returned Value:
* None
*
****************************************************************************/
#ifdef CONFIG_ARCH_DCACHE
.globl up_flush_dcache_all
.type up_flush_dcache_all, function
up_flush_dcache_all:
.word 0x500F
#endif
/****************************************************************************
* Name: up_invalidate_icache_all
*