Encoding:

COP0

010000

CO

1

0

000 0000 0000 0000 0000

TLBP

001000

6

1

19

6

Format:

TLBP

MIPS32

Probe TLB for Matching Entry

Purpose:

Probe TLB for Matching Entry

To ind a matching entry in the TLB.

Description:

The TLBP instruction is unmodiied from the base architectural deinition, exceptin an implementation supporting

GuestID:

When executing in Guest mode, if the GuestID read does not match GuestCtl1ID, then the match fails.

Restrictions:

Unchanged from the base architecture.

Operation:

if IsCoprocessorEnabled(0) then
Index = 1 || UNPREDICTABLE31
for i in 0...TLBEntries-1
if ((TLB[i]VPN2 & ~(TLB[i]Mask)) = (EntryHiVPN2 & ~(TLB[i]Mask))) and
(TLB[i]R = EntryHiR) and
(Config4IE >= 2 && TLB[i]hardware_invalid != 1) and
((IsRootMode() and (TLB[i]GuestID = GuestCtl1RID)) or
(IsGuestMode() and (TLB[i]GuestID = GuestCtl1ID))) and
((TLB[i]G = 1) or (TLB[i]ASID = EntryHiASID)) then
Index = i
endif
endfor
else
SignalException(CoprocessorUnusable, 0)
endif

Exceptions:

Coprocessor Unusable

Reserved Instruction

Machine Check (implementation deined)