tlbsx

TLB Search Indexed

tlbsx RA, RB

Searches the TLB for an address.

Details

Searches the TLB for an entry matching the virtual address formed by combining RA and RB, and loads matching entry data into MAS0–MAS3 registers. If a match is found, MAS0.ESEL contains the entry index and MAS1–MAS3 contain the matching entry data. This instruction is privileged and affects MAS registers but not the general condition register.

Pseudocode Operation

EA ← (RA) + (RB)
if TLB.lookup(EA) then
  MAS0 ← TLB.index(EA)
  MAS1 ← TLB[index].MAS1
  MAS2 ← TLB[index].MAS2
  MAS3 ← TLB[index].MAS3
else
  MAS0.NOMPLT ← 1
end if

Example

tlbsx r4, r5

Encoding

Binary Layout
31
0
/
6
RA
11
RB
16
914
21
/
31
 
Format X-form
Opcode 0x7C000722
Extension Embedded

Operands

  • RA
    Base
  • RB
    Index