Machine Security Configuration
Machine Security Configuration
| 63:56 | 55:48 | 47:40 | 39:32 | 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| — | SSEED | USEED | — | RLB | MMWP | MML | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| [0] | MML | Machine 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-R | UNDEFINED_LEGAL | |
| [1] | MMWP | Machine-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-R | UNDEFINED_LEGAL | |
| [2] | RLB | Rule 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-R | UNDEFINED_LEGAL | |
| [8] | USEED | Controls 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] | SSEED | Controls 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.