Commit d1e344e5 authored by Ralf Baechle's avatar Ralf Baechle

Use hardware mechanism to deal with cache aliases in the 24K.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 28ecca47
...@@ -1011,9 +1011,17 @@ static void __init probe_pcache(void) ...@@ -1011,9 +1011,17 @@ static void __init probe_pcache(void)
* normally they'd suffer from aliases but magic in the hardware deals * normally they'd suffer from aliases but magic in the hardware deals
* with that for us so we don't need to take care ourselves. * with that for us so we don't need to take care ourselves.
*/ */
if (c->cputype != CPU_R10000 && c->cputype != CPU_R12000) switch (c->cputype) {
if (c->dcache.waysize > PAGE_SIZE) if (c->dcache.waysize > PAGE_SIZE)
case CPU_R10000:
case CPU_R12000:
break;
case CPU_24K:
if (!(read_c0_config7() & (1 << 16)))
default:
c->dcache.flags |= MIPS_CACHE_ALIASES; c->dcache.flags |= MIPS_CACHE_ALIASES;
}
switch (c->cputype) { switch (c->cputype) {
case CPU_20KC: case CPU_20KC:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment