From: Michal Simek <mon...@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 <mon...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to