tlbwe
TLB Write Entry
tlbwe
Writes a TLB entry from MAS registers.
Details
Writes a TLB entry from MAS1–MAS3 registers into the TLB at the location specified by MAS0. This instruction is privileged and requires hypervisor mode on some implementations. The entry index and way are determined by MAS0; the instruction updates the corresponding TLB entry with data from MAS1–MAS3.
Pseudocode Operation
TLB[MAS0.ESEL, MAS0.TLBSEL].MAS1 ← MAS1
TLB[MAS0.ESEL, MAS0.TLBSEL].MAS2 ← MAS2
TLB[MAS0.ESEL, MAS0.TLBSEL].MAS3 ← MAS3
Example
tlbwe
Encoding
Binary Layout
31
0
/
6
/
11
/
16
978
21
/
31