RISC-V Topic Guide

Context Switch

RISC-V context switching is an OS or runtime save/restore convention that typically covers GPR and stack state, uses mstatus/sstatus FS, VS, and XS state to manage floating-point, vector, and extension context, and handles satp, ASIDs, and address-translation cache consistency when switching address spaces.

spras0-s11mstatusFSVSXSsatpASIDmscratchsscratchfcsrvlvtypestack