Commit 31ec86b8 authored by Markos Chandras's avatar Markos Chandras Committed by Ralf Baechle

MIPS: traps: Dump the HTW registers on a MC exception

The HTW registers can be useful to debug a MC exception.
Signed-off-by: default avatarMarkos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8400/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 314727fe
......@@ -1432,6 +1432,11 @@ asmlinkage void do_mcheck(struct pt_regs *regs)
pr_err("EntryHi : %0*lx\n", field, read_c0_entryhi());
pr_err("EntryLo0: %0*lx\n", field, read_c0_entrylo0());
pr_err("EntryLo1: %0*lx\n", field, read_c0_entrylo1());
if (cpu_has_htw) {
pr_err("PWField : %0*lx\n", field, read_c0_pwfield());
pr_err("PWSize : %0*lx\n", field, read_c0_pwsize());
pr_err("PWCtl : %0x\n", read_c0_pwctl());
}
pr_err("\n");
dump_tlb_all();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment