From: Ralf Baechle Date: Mon, 19 Jun 2006 20:56:25 +0000 (+0100) Subject: [MIPS] Treat CPUs with AR bit as physically indexed. X-Git-Tag: v2.6.18-rc1~353^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=beab375a48f0cd90eb08f04e2c1dad67b9e6d3f8;p=linux-2.6-omap-h63xx.git [MIPS] Treat CPUs with AR bit as physically indexed. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index a78355a44c4..33b1451a365 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c @@ -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) {