rfid

Return From Interrupt Doubleword

rfid

Returns from an interrupt handler. Restores PC from SRR0 and MSR from SRR1.

Details

Returns from an interrupt handler by restoring the Program Counter from SRR0 and the Machine State Register from SRR1. This is a privileged instruction that must be executed in Hypervisor or privileged state. Execution continues at the address loaded from SRR0 with the MSR value from SRR1, enabling recovery from exceptions and context restoration. No condition or status registers are affected; the entire processor state is restored from the saved registers.

Pseudocode Operation

CIA ← SRR0; MSR ← SRR1; context is fully restored

Programming Note

If this instruction sets MSRPR to 1, it also sets MSREE, MSRIR, and MSRDR to 1. If this instruction results in MSRS HV PR being equal to 0b110, it also sets MSRIR and MSRDR to 0.

Example

rfid

// Exit Kernel Mode.

Encoding

Binary Layout
19
0
/
6
/
11
/
16
18
21
/
31
 
Format XL-form
Opcode 0x4C000024
Extension Privileged
Registers Altered MSR, SRR0, SRR1, HSRR0, HSRR1, USRR0

Operands