mtsr

Move To Segment Register

mtsr SR, RS

Legacy 32-bit segment register write.

Details

Move the contents of GPR RS into the specified 32-bit segment register SR. This is a legacy instruction used in 32-bit PowerPC address translation and is not available in 64-bit mode. No status fields are affected.

Pseudocode Operation

SR ← RS[32:63]

Example

mtsr 0, r3

Encoding

Binary Layout
31
0
RS
6
SR
11
/
16
210
21
/
31
 
Format X-form
Opcode 0x7C0001A6
Extension Base

Operands

  • SR
    Segment Reg
  • RS
    Source