powerpc/xmon: Use `dcbf` inplace of `dcbi` instruction for 64bit Book3S
[sfrench/cifs-2.6.git] / arch / powerpc / xmon / xmon.c
index 8fb1f857c11c652cfdce51428458ab684762a79c..4923347b884beb3b8c010586b85b49075bcf07e3 100644 (file)
@@ -1869,7 +1869,7 @@ static void cacheflush(void)
                catch_memory_errors = 1;
                sync();
 
-               if (cmd != 'i') {
+               if (cmd != 'i' || IS_ENABLED(CONFIG_PPC_BOOK3S_64)) {
                        for (; nflush > 0; --nflush, adrs += L1_CACHE_BYTES)
                                cflush((void *) adrs);
                } else {