]> git.sur5r.net Git - u-boot/commitdiff
microblaze: Support system with WB cache
authorMichal Simek <monstr@monstr.eu>
Fri, 16 Apr 2010 09:59:29 +0000 (11:59 +0200)
committerMichal Simek <monstr@monstr.eu>
Fri, 16 Apr 2010 10:16:02 +0000 (12:16 +0200)
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@monstr.eu>
arch/microblaze/lib/cache.c

index 4b2e8e3790e6ef3b4197ecc765a441ebcfdabc2c..9b6b60f73c696e5e5c9d6766b2e3bef4a3f459fe 100644 (file)
@@ -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;"
                                :