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

The TLB only matches the ASID when the global bit isn't set, so
dump_tlb() shouldn't really be skipping global entries just because the
ASID doesn't match. Fix the condition to read the TLB entry's global bit
from EntryLo0. Note that after a TLB read the global bits in both
EntryLo registers reflect the same global bit in the TLB entry.

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/10079/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lib/dump_tlb.c
arch/mips/lib/r3k_dump_tlb.c