tlbsx

TLB Search Indexed

tlbsx RA, RB

Searches the TLB for an address.

Encoding

Binary Layout
31
0:5
/
6:10
RA
11:15
RB
16:20
914
21:30
/
31
 
Format X-form
Opcode 0x7C000724
Extension Embedded

Operands

  • RA
    Base
  • RB
    Index

Example

tlbsx r4, r5

Related

More in Embedded

Reference

Not in Power ISA v3.1C

Description

Not in Power ISA v3.1C: this is an embedded-core instruction, and the encoding shown is binutils' (opcodes/ppc-opc.c), not the manual's. 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.

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