The HTW registers can be useful to debug a MC exception. Signed-off-by: Markos Chandras <markos.chandras@xxxxxxxxxx> --- arch/mips/kernel/traps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 51fa5c3aa4fe..32feb481a67a 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1385,6 +1385,11 @@ asmlinkage void do_mcheck(struct pt_regs *regs) pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi()); pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0()); pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1()); + if (cpu_has_htw) { + pr_info("PWField : %0*lx\n", field, read_c0_pwfield()); + pr_info("PWSize : %0*lx\n", field, read_c0_pwsize()); + pr_info("PWCtl : %0x\n", read_c0_pwctl()); + } pr_info("\n"); dump_tlb_all(); } -- 2.1.3