mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[MIPS] Cache: Provide more information on cache policy on bootup.
This should help making bug reports for the gadzillion of cores with all their configuration and synthesis options more useful. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
985c30ef4d
commit
64bfca5cd8
1 changed files with 7 additions and 3 deletions
|
@ -983,11 +983,15 @@ static void __init probe_pcache(void)
|
||||||
|
|
||||||
printk("Primary instruction cache %ldkB, %s, %s, linesize %d bytes.\n",
|
printk("Primary instruction cache %ldkB, %s, %s, linesize %d bytes.\n",
|
||||||
icache_size >> 10,
|
icache_size >> 10,
|
||||||
cpu_has_vtag_icache ? "virtually tagged" : "physically tagged",
|
cpu_has_vtag_icache ? "VIVT" : "VIPT",
|
||||||
way_string[c->icache.ways], c->icache.linesz);
|
way_string[c->icache.ways], c->icache.linesz);
|
||||||
|
|
||||||
printk("Primary data cache %ldkB, %s, linesize %d bytes.\n",
|
printk("Primary data cache %ldkB, %s, %s, %s, linesize %d bytes\n",
|
||||||
dcache_size >> 10, way_string[c->dcache.ways], c->dcache.linesz);
|
dcache_size >> 10, way_string[c->dcache.ways],
|
||||||
|
(c->dcache.flags & MIPS_CACHE_PINDEX) ? "PIPT" : "VIPT",
|
||||||
|
(c->dcache.flags & MIPS_CACHE_ALIASES) ?
|
||||||
|
"cache aliases" : "no aliases",
|
||||||
|
c->dcache.linesz);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue