MIPS: dump_tlb: Take XPA into account
authorJames Hogan <james.hogan@imgtec.com>
Tue, 19 May 2015 08:50:38 +0000 (09:50 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 21 Jun 2015 19:52:39 +0000 (21:52 +0200)
commit24ca1d9896bb9bbd7625e3596bac4ea2fe74c725
treeb5497e24dd199ddc244f7a8d2d439112ef056a26
parentc2bc435e4f2cd5f010063b49f68e5b2cfaccc84e
MIPS: dump_tlb: Take XPA into account

XPA extends the physical addresses on MIPS32, including the EntryLo
registers. Update dump_tlb() to concatenate the PFNX field from the high
end of the EntryLo registers (as read by mfhc0).

The width of physical and virtual addresses are also separated to show
only 8 nibbles of virtual but 11 nibbles of physical with XPA.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10077/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lib/dump_tlb.c