What happens if the related CFI feature is inactive for SSPOPCHK?
Zicfiss instructions degrade according to the official Zimop/Zcmop-compatible behavior and do not perform shadow-stack checks or updates.
SSPOPCHK reads the shadow return address at ssp and checks it against x1/x5.
Beginner view: SSPOPCHK loads the shadow return address at ssp and compares it bit-for-bit with x1 or x5. A mismatch raises a software-check exception; on success ssp advances by XLEN/8.
Shows only specification-defined encodings, conditions, and architectural state.
SSPOPCHK is a Zicfiss shadow-stack check; xSSE and the access result determine comparison and ssp update.
Understand this scenario with real code like «sspopchk x1».
Understand this scenario with real code like «sspopchk x1».
Understand this scenario with real code like «sspopchk x1».
Zicfiss instructions degrade according to the official Zimop/Zcmop-compatible behavior and do not perform shadow-stack checks or updates.
The Control-Flow Integrity chapter of the RISC-V Unprivileged ISA defines LPAD, SSPUSH, SSPOPCHK, SSRDP, and SSAMOSWAP.