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: 75b5b5e0a2
("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>
This commit is contained in:

committed by
Thomas Bogendoerfer

parent
48f5dd56cf
commit
efd1b4ad3d
@@ -2454,7 +2454,8 @@ void __init trap_init(void)
|
||||
if (cpu_has_fpu && !cpu_has_nofpuex)
|
||||
set_except_vector(EXCCODE_FPE, handle_fpe);
|
||||
|
||||
set_except_vector(MIPS_EXCCODE_TLBPAR, handle_ftlb);
|
||||
if (cpu_has_ftlbparex)
|
||||
set_except_vector(MIPS_EXCCODE_TLBPAR, handle_ftlb);
|
||||
|
||||
if (cpu_has_rixiex) {
|
||||
set_except_vector(EXCCODE_TLBRI, tlb_do_page_fault_0);
|
||||
|
Reference in New Issue
Block a user