rfscv

Return from System Call Vectored

rfscv

Returns from a vectored system call.

Details

Return from a vectored system call by restoring the processor state from SRR0 and SRR1. This privileged instruction restores PC from SRR0 and MSR from SRR1, typically returning to user mode if MSR[PR] was set in the saved state. It is the inverse of scv.

Pseudocode Operation

PC ← SRR0
MSR ← SRR1

Programming Note

The rfscv instruction is used to return from a system call vectored, restoring the program's execution context by setting the CIA to the value in SRR0 and the MSR from SRR1. Ensure that this instruction is executed at the appropriate privilege level and be aware of any potential exceptions or performance implications related to restoring the machine state.

Example

rfscv

Encoding

Binary Layout
19
0
/
6
/
11
/
16
82
21
/
31
 
Format XL-form
Opcode 0x4C0000A4
Extension Privileged
Registers Altered SRR0, SRR1, MSR

Operands