ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

ssp

T1 riscv register register
Shadow Stack Pointer
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (Zicfiss)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeU
ExtensionsZicfiss

Summary

The ssp CSR is an unprivileged read-write (URW) CSR that reads and writes XLEN low order bits of the shadow stack pointer. The ssp is always as wide as the XLEN of the current privilege mode. The bits 1:0 of ssp are read-only zero. If the UXLEN or SXLEN may never be 32, then the bit 2 is also read-only zero.

Syntax / Encoding

CSR 0x011 (U-mode, RW)

Bitfields (1)

BitsFieldDescription
63:3VALUEThe value in ssp points to the top of the shadow stack, which is the address of the last element stored on the shadow stack. [RV32: 31:2, RV64: 63:3]

Reference Notes

The `ssp` CSR is an unprivileged read-write (URW) CSR that reads and writes
XLEN low order bits of the shadow stack pointer. The `ssp` is always as wide
as the XLEN of the current privilege mode. The bits 1:0 of ssp are read-only
zero. If the UXLEN or SXLEN may never be 32, then the bit 2 is also read-only
zero.