mseccfg
Machine security configuration register
- Address
0x747- Group
- Machine-level CSRs
- Privilege
MRW(privileged spec CSR listing, Machine Configuration)- Access
- read/write; lowest privilege M (machine)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Machine Security Configuration
Privileged spec: Machine security configuration register
Description
Machine Security Configuration
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
MML | 0 | RW-R | Machine Mode Lockdown. MML is a WARL field that changes the interpretation of the When MML is set:
When MML is clear, the combination |
MMWP | 1 | RW-R | 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. |
RLB | 2 | RW-R | 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 Vendors who don't need this functionality may hardwire this field to 0. |
USEED | 8 | Controls access to the | |
SSEED | 9 | Controls access to the |
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.
Specification and related pages
- The RISC-V Instruction Set Manual, Volume II: CSR listing (src/priv/csrs.adoc)
- riscv-opcodes csrs.csv
- riscv-unified-db: spec/std/isa/csr/mseccfg.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)