← Home

mseccfg

Machine Security Configuration

Address: 0x747 (1863) · Privilege: M · Length: 64 · Writable · Defined by: Sm (>= 1.12) and (Zkr or Smmpm or Zicfilp or Smepmp)

Machine Security Configuration

Fields

63:5655:4847:4039:3231:2423:1615:87:0
—SSEEDUSEED—RLBMMWPMML
BitsFieldAliasDescriptionTypeReset
[0]MMLMachine 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-only when clear. The formerly reserved encoding `pmpcfg.RW=01`, and the encoding `pmpcfg.LRWX=1111`, now encode a Shared-Region. . Adding a rule with executable privileges that is either M-mode-only or a locked Shared-Region is not possible, and such `pmpcfg` writes are ignored, unless `mseccfg.RLB` is set. . M-mode can only execute code from regions with a matching M-mode-only rule or a locked Shared-Region rule with executable privileges. When MML is clear, the combination `pmpcfg.RW=01` remains reserved.RW-RUNDEFINED_LEGAL
[1]MMWPMachine-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.RW-RUNDEFINED_LEGAL
[2]RLBRule 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 modifications to RLB are ignored until a PMP reset. Vendors who don't need this functionality may hardwire this field to 0.RW-RUNDEFINED_LEGAL
[8]USEEDControls access to the `seed` CSR from U-mode.
return USEED_READ_ONLY_ZERO ? CsrFieldType::RO : CsrFieldType::RW;
return USEED_READ_ONLY_ZERO ? 0 : UNDEFINED_LEGAL;
[9]SSEEDControls access to the `seed` CSR from S-mode and VS-mode.
return SSEED_READ_ONLY_ZERO ? CsrFieldType::RO : CsrFieldType::RW;
return SSEED_READ_ONLY_ZERO ? 0 : UNDEFINED_LEGAL;

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.