slbmfee

SLB Move From Entry ESID

slbmfee RT, RB

Reads the ESID part of an SLB entry.

Details

The SLB Move From Entry ESID (slbmfee) instruction is used to read software-loaded SLB entries. It places the contents of the ESID and V fields of the specified entry into register RT. If the entry is valid, it also places the BO field into RT.

Pseudocode Operation

if LPCRUPRT == 0:
    index = RB[52:63]
else:
    index = RB[52:61] & 0x3
entry = SLB[index]
if entry.V == 1:
    RT[0:35] = entry.ESID
    RT[36] = entry.V
    if LPCRUPRT == 1:
        RT[37] = entry.BO
else:
    RT = 0

Programming Note

The slbmfee instruction is used to read software-loaded SLB entries, placing the ESID and V fields into register RT. If the entry is valid and LPCRUPRT is set, it also places the BO field into RT. Ensure that the index calculation respects the LPCRUPRT setting to avoid accessing invalid SLB entries.

Example

slbmfee r3, r5

Encoding

Binary Layout
31
0
RT
6
/
11
RB
16
366
21
/
31
 
Format X-form
Opcode 0x7C0002DE
Extension Privileged
Registers Altered LPCRUPRT

Operands

  • RT
    Target
  • RB
    Index