ssp
Shadow Stack Pointer
- Address
0x011- Group
- Unprivileged and user-level CSRs
- Privilege
URW(privileged spec CSR listing, Unprivileged Zicfiss Extension CSR)- Access
- read/write; lowest privilege U (user/unprivileged)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Shadow Stack Pointer
Privileged spec: Shadow Stack Pointer
Description
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.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
VALUE | RV32 31-2 / RV64 63-3 | RW | The value in ssp points to the top of the shadow stack, which is the address of the last element stored on the shadow stack. |
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.
Specification and related pages
- The RISC-V Instruction Set Manual, Volume II: CSR listing (src/priv/csrs.adoc)
- riscv-opcodes csrs.csv
- riscv-unified-db: spec/std/isa/csr/ssp.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)