MIPS: dump_tlb: Take EHINV bit into account
authorJames Hogan <james.hogan@imgtec.com>
Tue, 19 May 2015 08:50:36 +0000 (09:50 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 21 Jun 2015 19:52:36 +0000 (21:52 +0200)
commitdecebccd76e4da9bb096962c230b6ed740606e49
tree28c00bcd0620525b43689728f88bdfa0a4a41f8f
parent48269c78fb04a84b4d190cac8e1fbf24ded53505
MIPS: dump_tlb: Take EHINV bit into account

The EHINV bit in EntryHi allows a TLB entry to be properly marked
invalid so that EntryHi doesn't have to be set to a unique value to
avoid machine check exceptions due to multiple matching entries.

Unfortunately dump_tlb() doesn't take this into account so it will print
all the uninteresting invalid TLB entries if the current ASID happens to
be 00. Therefore add a condition to skip entries which are marked
invalid with the EHINV bit.

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