Smpmpmt
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
Summary
The Smpmpmt extension provides a mechanism analogous to Svpbmt but associated with the PMP registers rather than page-table entries. A new WARL field, MT (Memory Type), is added in the unallocated bits 6--5 in each PMP configuration register. The MT field of the lowest-numbered PMP register that an access matches, following the existing PMP address-matching rules, overrides the PMAs for that access. If an access…
Syntax / Encoding
Smpmpmt v0.6 (frozen)
Reference Notes
The Smpmpmt extension provides a mechanism analogous to Svpbmt but associated with the PMP registers rather than page-table entries. A new WARL field, MT (Memory Type), is added in the unallocated bits 6--5 in each PMP configuration register. The MT field of the lowest-numbered PMP register that an access matches, following the existing PMP address-matching rules, overrides the PMAs for that access. If an access matches no PMP registers, or if the MT field of the matching PMP register contains the value PMA, then the access proceeds as though the Smpmpmt extension were not implemented. NOTE: The permissions checks associated with a PMP register are unrelated to whether an access is considered to match a PMP register. For example, even though a PMP register with its L bit clear does not enforce its permissions checks on M-mode accesses, M-mode accesses within the address range of that PMP register are still considered to match. Hence, that PMP register's MT field takes effect for matching M-mode accesses. The MT field is encoded as shown below. The encoding is identical to that of the PBMT field, and the meaning of each type is as specified by the Svpbmt extension. Refer to that specification for the semantics of each type. The MT field encoding is identical to Svpbmt's PBMT field: * 0 (PMA): No override; use platform PMAs. * 1 (NC): Non-cacheable, idempotent, weakly-ordered (RVWMO) main memory. * 2 (IO): Non-cacheable, non-idempotent, strongly-ordered (I/O ordering) I/O. * 3: Reserved for future standard use. The PMP-based memory types compose with the page-based memory types as follows. First, the PMP-based memory types override the PMAs, producing an intermediate set of attributes. Then, supervisor-level memory attributes (e.g. the page-based attributes described in the Svpbmt specification) override the intermediate attributes to produce a final set of attributes. As with Svpbmt, it is implementation-defined whether PMP-based memory types override additional PMAs not explicitly listed in the table above.