diff options
author | James Hogan <james.hogan@imgtec.com> | 2015-09-17 12:49:20 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-09-22 15:11:05 -0400 |
commit | 2f6f31363cb7890784458d7805140687b4de5b59 (patch) | |
tree | 028fff6eecd645873d3da7038c857730b283d9d3 /arch/mips/include/asm/cpu-features.h | |
parent | 19446da415e0f01d56364b700fe984cda78bca50 (diff) |
MIPS: cpu-features: Add cpu_has_ftlb
Add cpu_has_ftlb, which specifies that an FTLB is present in addition to
the VTLB, probed based on whether Config.MT == 4 (rather than 1 for
standard JTLB).
This is necessary since MIPS release 6 removes Config4.MMUExtDef, so the
presence of the FTLB fields in Config4 must be determined from Config.MT
instead.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11159/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/cpu-features.h')
-rw-r--r-- | arch/mips/include/asm/cpu-features.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cpu-features.h b/arch/mips/include/asm/cpu-features.h index 9801ac982655..fe67f12ac239 100644 --- a/arch/mips/include/asm/cpu-features.h +++ b/arch/mips/include/asm/cpu-features.h | |||
@@ -20,6 +20,9 @@ | |||
20 | #ifndef cpu_has_tlb | 20 | #ifndef cpu_has_tlb |
21 | #define cpu_has_tlb (cpu_data[0].options & MIPS_CPU_TLB) | 21 | #define cpu_has_tlb (cpu_data[0].options & MIPS_CPU_TLB) |
22 | #endif | 22 | #endif |
23 | #ifndef cpu_has_ftlb | ||
24 | #define cpu_has_ftlb (cpu_data[0].options & MIPS_CPU_FTLB) | ||
25 | #endif | ||
23 | #ifndef cpu_has_tlbinv | 26 | #ifndef cpu_has_tlbinv |
24 | #define cpu_has_tlbinv (cpu_data[0].options & MIPS_CPU_TLBINV) | 27 | #define cpu_has_tlbinv (cpu_data[0].options & MIPS_CPU_TLBINV) |
25 | #endif | 28 | #endif |