projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92c7b62
)
[MIPS] Treat CPUs with AR bit as physically indexed.
author
Ralf Baechle
<
[email protected]
>
Mon, 19 Jun 2006 20:56:25 +0000
(21:56 +0100)
committer
Ralf Baechle
<
[email protected]
>
Thu, 29 Jun 2006 20:10:54 +0000
(21:10 +0100)
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/mm/c-r4k.c
patch
|
blob
|
history
diff --git
a/arch/mips/mm/c-r4k.c
b/arch/mips/mm/c-r4k.c
index a78355a44c41d93a8138934740327821356f6b8f..33b1451a365decb166138e8b4d723d9ca8bf29c2 100644
(file)
--- 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) {