OSDN Git Service

PPC: booke206: move avail check to tlbwe
authorAlexander Graf <agraf@suse.de>
Wed, 25 Jan 2012 16:06:30 +0000 (17:06 +0100)
committerAlexander Graf <agraf@suse.de>
Thu, 2 Feb 2012 01:47:46 +0000 (02:47 +0100)
commit21a0b6ed1dd9f1d8e3d953954847776c8697bd99
treef8902c080bb49672ab989ce4484169e74b045785
parent3f162d119ef52fda714ebb498fcb4f4b7c354d38
PPC: booke206: move avail check to tlbwe

We can have TLBs that only support a single page size. This is defined
by the absence of the AVAIL flag in TLBnCFG. If this is the case, we
currently write invalid size info into the TLB, but override it on
internal fault.

Let's move the check over to tlbwe, so we don't have the AVAIL check in
the hotter fault path.

Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/helper.c
target-ppc/op_helper.c