[U-Boot] [PATCH 7/8] microblaze: Support system with WB cache

monstr at monstr.eu monstr at monstr.eu
Fri Apr 16 12:09:03 CEST 2010


From: Michal Simek <monstr at monstr.eu>

WB cache use different instruction that WT cache but the major code
is that same. That means that wdc.flush on system with WT cache
do the same thing as before.

You need newer toolchain with wdc.flush support.

Signed-off-by: Michal Simek <monstr at monstr.eu>
---
 arch/microblaze/lib/cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/microblaze/lib/cache.c b/arch/microblaze/lib/cache.c
index 4b2e8e3..9b6b60f 100644
--- a/arch/microblaze/lib/cache.c
+++ b/arch/microblaze/lib/cache.c
@@ -34,7 +34,7 @@ void flush_cache (ulong addr, ulong size)
 #endif
 				"nop;"
 #ifdef CONFIG_DCACHE
-				"wdc	%0, r0;"
+				"wdc.flush	%0, r0;"
 #endif
 				"nop;"
 				:
-- 
1.5.5.1



More information about the U-Boot mailing list