]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Treat CPUs with AR bit as physically indexed.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 19 Jun 2006 20:56:25 +0000 (21:56 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Jun 2006 20:10:54 +0000 (21:10 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/c-r4k.c

index a78355a44c41d93a8138934740327821356f6b8f..33b1451a365decb166138e8b4d723d9ca8bf29c2 100644 (file)
@@ -1009,10 +1009,15 @@ static void __init probe_pcache(void)
                break;
        case CPU_24K:
        case CPU_34K:
-               if (!(read_c0_config7() & (1 << 16)))
+               if ((read_c0_config7() & (1 << 16))) {
+                       /* effectively physically indexed dcache,
+                          thus no virtual aliases. */
+                       c->dcache.flags |= MIPS_CACHE_PINDEX;
+                       break;
+               }
        default:
-                       if (c->dcache.waysize > PAGE_SIZE)
-                               c->dcache.flags |= MIPS_CACHE_ALIASES;
+               if (c->dcache.waysize > PAGE_SIZE)
+                       c->dcache.flags |= MIPS_CACHE_ALIASES;
        }
 
        switch (c->cputype) {