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

Smepmp

T1 riscv feature feature
PMP Enhancements for memory access and execution prevention on Machine mode
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

Summary

The Smepmp extension enhances the Physical Memory Protection (PMP) mechanism to support M-mode memory access and execution prevention.

Syntax / Encoding

Smepmp v1.0.0 (ratified)

Reference Notes

The Smepmp extension enhances the Physical Memory Protection (PMP) mechanism
to support M-mode memory access and execution prevention.

Smepmp adds a new Machine Security Configuration register (`mseccfg`) with the
following key fields:

* **MML (Machine Mode Lockdown)**: When set, changes the interpretation of
  PMP rules so that `pmpcfg.L` marks rules as M-mode-only rather than locked.
  This enables shared regions accessible across multiple privilege levels.

* **MMWP (Machine Mode Whitelist Policy)**: When set, memory regions without
  matching PMP rules are denied in M-mode instead of being accessible.
  This provides a default-deny policy for M-mode.

* **RLB (Rule Locking Bypass)**: Allows modification of locked PMP rules.
  Intended as a debug mechanism or temporary boot-time workaround.

These enhancements enable more secure system configurations by allowing
software to restrict M-mode's access to memory, which is essential for
implementing trusted execution environments and secure boot processes.