rfid
Return From Interrupt Doubleword
rfid
Returns from an interrupt handler. Restores PC from SRR0 and MSR from SRR1.
Encoding
Binary Layout
19
0:5
/
6:10
/
11:15
/
16:20
18
21:30
/
31
Operands
Registers Altered
MSR, SRR0, SRR1, HSRR0, HSRR1, USRR0Related
More in Privileged
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
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.
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.