Commit a0b62180 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] SMTC: Fix TLB sizing bug for TLB of 64 >= entries

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 89c07fd1
...@@ -270,9 +270,12 @@ void smtc_configure_tlb(void) ...@@ -270,9 +270,12 @@ void smtc_configure_tlb(void)
* of their initialization in smtc_cpu_setup(). * of their initialization in smtc_cpu_setup().
*/ */
tlbsiz = tlbsiz & 0x3f; /* MIPS32 limits TLB indices to 64 */ /* MIPS32 limits TLB indices to 64 */
cpu_data[0].tlbsize = tlbsiz; if (tlbsiz > 64)
tlbsiz = 64;
cpu_data[0].tlbsize = current_cpu_data.tlbsize = tlbsiz;
smtc_status |= SMTC_TLB_SHARED; smtc_status |= SMTC_TLB_SHARED;
local_flush_tlb_all();
printk("TLB of %d entry pairs shared by %d VPEs\n", printk("TLB of %d entry pairs shared by %d VPEs\n",
tlbsiz, vpes); tlbsiz, vpes);
......
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