MIPS: cpu-features: Add cpu_has_ftlb
authorJames Hogan <james.hogan@imgtec.com>
Thu, 17 Sep 2015 16:49:20 +0000 (17:49 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 22 Sep 2015 19:11:05 +0000 (21:11 +0200)
commit2f6f31363cb7890784458d7805140687b4de5b59
tree028fff6eecd645873d3da7038c857730b283d9d3
parent19446da415e0f01d56364b700fe984cda78bca50
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>
arch/mips/include/asm/cpu-features.h
arch/mips/include/asm/cpu.h
arch/mips/include/asm/mipsregs.h
arch/mips/kernel/cpu-probe.c