sh: update the TLB replacement counter for entry wiring.
authorMatt Fleming <matt@console-pimps.org>
Fri, 26 Mar 2010 02:37:16 +0000 (11:37 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 26 Mar 2010 02:37:16 +0000 (11:37 +0900)
commit4539282dbc20fe612113c8f267d51a90d46a7f50
tree579f4785bd2e06339291df2c1d17c0b7be93df0c
parent01e77706cdde7c0b47e5ca1f4284a795504c7c40
sh: update the TLB replacement counter for entry wiring.

Presently the TLB wiring code depends on MMUCR.URB for working out where
to place the wired entry, but fails to take the replacment counter in to
consideration. This fixes up the wiring logic and ensures that wired
entries remain so.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/cpu-sh4/cpu/mmu_context.h
arch/sh/mm/tlb-urb.c