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

mseccfg

T1 riscv register register
Machine Security Configuration
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (Sm, Smepmp, Smmpm)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeM
ExtensionsSm, Smepmp, Smmpm, Zicfilp, Zkr

Summary

Machine Security Configuration

Syntax / Encoding

CSR 0x747 (M-mode, RW)

Bitfields (5)

BitsFieldDescription
9SSEEDControls access to the seed CSR from S-mode and VS-mode.
8USEEDControls access to the seed CSR from U-mode.
2RLBRule Locking Bypass. RLB is a WARL field that provides a mechanism to temporarily modify locked PMP rules. When RLB is 1, locked PMP rules may be removed or modified, and locked PMP entries may be edited. When RLB is 0 and pmpcfg.L is 1 in any rule or entry (including disabled entries), RLB remains 0 and any further
1MMWPMachine-Mode Allowlist Policy. MMWP is a WARL field that changes the default PMP policy for M-mode when accessing memory regions that don't have a matching PMP rule. When set, such accesses are denied instead of ignored. It is a sticky bit: once set, it cannot be cleared until a PMP reset.
0MMLMachine Mode Lockdown. MML is a WARL field that changes the interpretation of the pmpcfg.L bit. It is a sticky bit: once set, it cannot be cleared until a PMP reset. When MML is set: . pmpcfg.L no longer marks a rule as locked and enforced in all modes. Instead, it marks a rule as M-mode-only when set and S/U-mode