rfscv

Return from System Call Vectored

rfscv

Returns from a vectored system call.

Details

The rfscv instruction is used to return from a system call vectored. It restores the program's execution context by setting the CIA (Current Instruction Address) to the value stored in SRR0 and restoring the MSR (Machine State Register) from the value stored in SRR1.

Pseudocode Operation

CIA ← 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