]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: only register FTLBPar exception handler for supported models
authorWANG Xuerui <git@xen0n.name>
Wed, 29 Jul 2020 13:14:15 +0000 (21:14 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 31 Jul 2020 15:52:10 +0000 (17:52 +0200)
commitb5705aaa5b9381608d7b20ce20ee6c7428a0984f
tree820e92edafd43538e37075f9a19c78a563302a16
parent84eb8961e768ea2539c73ffe1964b4416e9e5a61
MIPS: only register FTLBPar exception handler for supported models

Previously ExcCode 16 is unconditionally treated as the FTLB parity
exception (FTLBPar), but in fact its semantic is implementation-
dependent. Looking at various manuals it seems the FTLBPar exception is
only present on some recent MIPS Technologies cores, so only register
the handler on these.

Fixes: d70884155093b563 ("MIPS: Add support for FTLBs")
Reviewed-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: WANG Xuerui <git@xen0n.name>
Cc: Paul Burton <paulburton@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/cpu-features.h
arch/mips/include/asm/cpu.h
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/traps.c