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

Sspmp

T1 riscv feature feature
Supervisor Physical Memory Protection
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon Scopev1.0.0 (ratified)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
ExtensionsSmpmpdeleg, Sscsrind

Summary

The Sspmp extension defines a Supervisor-level Physical Memory Protection (SPMP) mechanism that allows S-mode software to configure memory protection regions.

Syntax / Encoding

Sspmp v1.0.0 (ratified)

Reference Notes

The Sspmp extension defines a Supervisor-level Physical Memory Protection (SPMP)
mechanism that allows S-mode software to configure memory protection regions.

SPMP entries are accessed indirectly via the Sscsrind/Smcsrind extension.
The siselect CSR selects the SPMP entry (0x100-0x13F), and sireg/sireg2 access
the corresponding spmpaddr/spmpcfg values.

SPMP provides memory protection for S-mode and U-mode accesses when satp.MODE
is Bare. It does not apply when virtual memory translation is active.

Key behaviors:

* SPMP entries are delegated from PMP entries via the mpmpdeleg CSR.
* Each SPMP entry has address (spmpaddr) and configuration (spmpcfg) registers
* spmpcfg includes R, W, X permissions, address matching mode (A), lock bit (L),
  U-mode bit (U), and SHARED bit
* Out-of-bounds siselect values read as 0 and writes are ignored