James Hogan 3c865dd9c1 MIPS: Refactor dumping of TLB registers for r3k/r4k
The TLB registers are dumped in a couble of places:
 - sysrq_tlbdump_single() - when dumping TLB state.
 - do_mcheck() - in response to a machine check error.

The main TLB registers also differ between r3k and r4k, but r4k appears
to be assumed.

Refactor this code into a dump_tlb_regs() function, implemented for both
r3k and r4k, and used by both of the above functions.

Fixes: d1e9a4f54735 ("MIPS: Add SysRq operation to dump TLBs on all CPUs")
Suggested-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10721/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2015-09-03 12:07:45 +02:00
..
2013-02-01 10:00:22 +01:00
2015-01-19 13:09:52 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2015-06-21 21:52:44 +02:00
2014-08-26 02:18:58 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-05-08 03:51:58 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2014-01-22 20:19:02 +01:00
2013-02-01 10:00:22 +01:00
2009-12-05 09:10:12 -08:00
2015-05-13 10:55:42 +02:00
2013-02-01 10:00:22 +01:00
2015-08-26 15:23:03 +02:00
2015-05-05 13:35:39 -06:00
2013-02-01 10:00:22 +01:00
2009-07-03 15:45:29 +01:00
2013-01-24 13:20:09 +01:00
2015-05-28 15:31:53 +02:00
2014-08-26 02:18:56 +02:00
2012-03-28 18:30:02 +01:00
2014-05-24 00:07:01 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2011-07-26 16:49:47 -07:00
2015-06-21 21:54:29 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2012-12-13 16:46:47 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2014-05-24 00:07:01 +02:00
2013-02-01 10:00:22 +01:00
2015-08-05 11:11:10 +02:00
2014-08-02 00:06:38 +02:00
2013-02-01 10:00:22 +01:00
2014-01-22 20:19:02 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-03-19 19:15:52 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2011-12-07 22:01:45 +00:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2010-04-12 17:26:14 +01:00
2013-09-18 17:13:58 +02:00
2013-02-01 10:00:22 +01:00