| To: | linux-mips@linux-mips.org, ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH] MIPS: Add support for the MIPS32 4Kc family I/D caches. |
| From: | "Steven J. Hill" <sjhill@mips.com> |
| Date: | Mon, 21 May 2012 10:33:32 -0500 |
| Cc: | "Steven J. Hill" <sjhill@mips.com>, Douglas Leung <douglas@mips.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: "Steven J. Hill" <sjhill@mips.com>
Signed-off-by: Douglas Leung <douglas@mips.com>
Signed-off-by: Steven J. Hill <sjhill@mips.com>
---
arch/mips/mm/c-r4k.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c
index 18546fa..bca1447 100644
--- a/arch/mips/mm/c-r4k.c
+++ b/arch/mips/mm/c-r4k.c
@@ -1000,7 +1000,7 @@ static void __cpuinit probe_pcache(void)
c->icache.linesz = 2 << lsize;
else
c->icache.linesz = lsize;
- c->icache.sets = 64 << ((config1 >> 22) & 7);
+ c->icache.sets = 32 << (((config1 >> 22) + 1) & 7);
c->icache.ways = 1 + ((config1 >> 16) & 7);
icache_size = c->icache.sets *
@@ -1020,7 +1020,7 @@ static void __cpuinit probe_pcache(void)
c->dcache.linesz = 2 << lsize;
else
c->dcache.linesz= lsize;
- c->dcache.sets = 64 << ((config1 >> 13) & 7);
+ c->dcache.sets = 32 << (((config1 >> 13) + 1) & 7);
c->dcache.ways = 1 + ((config1 >> 7) & 7);
dcache_size = c->dcache.sets *
--
1.7.10
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] MIPS: Remove dead code related to 1004K oprofile support., Steven J. Hill |
|---|---|
| Next by Date: | RE: [PATCH v2,1/5] MIPS: Add support for the 1074K core., Hill, Steven |
| Previous by Thread: | [PATCH] MIPS: Remove dead code related to 1004K oprofile support., Steven J. Hill |
| Next by Thread: | Re: [PATCH] MIPS: Add support for the MIPS32 4Kc family I/D caches., Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |