aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mm')
-rw-r--r--arch/mips/mm/c-r4k.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c
index a78355a44c41..33b1451a365d 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)
1009 break; 1009 break;
1010 case CPU_24K: 1010 case CPU_24K:
1011 case CPU_34K: 1011 case CPU_34K:
1012 if (!(read_c0_config7() & (1 << 16))) 1012 if ((read_c0_config7() & (1 << 16))) {
1013 /* effectively physically indexed dcache,
1014 thus no virtual aliases. */
1015 c->dcache.flags |= MIPS_CACHE_PINDEX;
1016 break;
1017 }
1013 default: 1018 default:
1014 if (c->dcache.waysize > PAGE_SIZE) 1019 if (c->dcache.waysize > PAGE_SIZE)
1015 c->dcache.flags |= MIPS_CACHE_ALIASES; 1020 c->dcache.flags |= MIPS_CACHE_ALIASES;
1016 } 1021 }
1017 1022
1018 switch (c->cputype) { 1023 switch (c->cputype) {