Webcentive RISC-V Reference

pmpcfg7

Physical memory protection configuration, RV32 only

Address
0x3A7
Group
Machine-level CSRs
Privilege
MRW (privileged spec CSR listing, Machine Memory Protection)
Access
read/write; lowest privilege M (machine)
Address range
Standard read/write
XLEN
RV32 only
Name in riscv-unified-db
PMP Configuration Register 7

Privileged spec: Physical memory protection configuration, RV32 only

Description

PMP entry configuration

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
pmp28cfg7-0

PMP configuration for entry 28

The bits are as follows:

NameLocationDescription
L7Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry.
MT6:5When the Smpmpmt extension is implemented, MT (Memory Type) is a WARL field that overrides the memory type for accesses that match this PMP entry. See the Smpmpmt extension definition for encodings. When the Smpmpmt extension is not implemented, MT is Reserved Writes shall be ignored.
A4:3
Address matching mode. Encodings: * OFF (0) - Null region (disabled) * TOR (1) - Top of range * NA4 (2) - Naturally aligned four-byte region * NAPOT (3) - Naturally aligned power of two
X2When clear, instruction fetches cause an Access Fault for the matching region and privilege mode.
W1When clear, stores and AMOs cause an Access Fault for the matching region and privilege mode.
R0When clear, loads cause an Access Fault for the matching region and privilege mode.

The combination of R = 0, W = 1 is reserved.

pmp29cfg15-8

PMP configuration for entry 29

The bits are as follows:

NameLocationDescription
L15Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry.
MT14:13When the Smpmpmt extension is implemented, MT (Memory Type) is a WARL field that overrides the memory type for accesses that match this PMP entry. See the Smpmpmt extension definition for encodings. When the Smpmpmt extension is not implemented, MT is Reserved Writes shall be ignored.
A12:11
Address matching mode. Encodings: * OFF (0) - Null region (disabled) * TOR (1) - Top of range * NA4 (2) - Naturally aligned four-byte region * NAPOT (3) - Naturally aligned power of two
X10When clear, instruction fetches cause an Access Fault for the matching region and privilege mode.
W9When clear, stores and AMOs cause an Access Fault for the matching region and privilege mode.
R8When clear, loads cause an Access Fault for the matching region and privilege mode.

The combination of R = 0, W = 1 is reserved.

pmp30cfg23-16

PMP configuration for entry 30

The bits are as follows:

NameLocationDescription
L23Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry.
MT22:21When the Smpmpmt extension is implemented, MT (Memory Type) is a WARL field that overrides the memory type for accesses that match this PMP entry. See the Smpmpmt extension definition for encodings. When the Smpmpmt extension is not implemented, MT is Reserved Writes shall be ignored.
A20:19
Address matching mode. Encodings: * OFF (0) - Null region (disabled) * TOR (1) - Top of range * NA4 (2) - Naturally aligned four-byte region * NAPOT (3) - Naturally aligned power of two
X18When clear, instruction fetches cause an Access Fault for the matching region and privilege mode.
W17When clear, stores and AMOs cause an Access Fault for the matching region and privilege mode.
R16When clear, loads cause an Access Fault for the matching region and privilege mode.

The combination of R = 0, W = 1 is reserved.

pmp31cfg31-24

PMP configuration for entry 31

The bits are as follows:

NameLocationDescription
L31Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry.
MT30:29When the Smpmpmt extension is implemented, MT (Memory Type) is a WARL field that overrides the memory type for accesses that match this PMP entry. See the Smpmpmt extension definition for encodings. When the Smpmpmt extension is not implemented, MT is Reserved Writes shall be ignored.
A28:27
Address matching mode. Encodings: * OFF (0) - Null region (disabled) * TOR (1) - Top of range * NA4 (2) - Naturally aligned four-byte region * NAPOT (3) - Naturally aligned power of two
X26When clear, instruction fetches cause an Access Fault for the matching region and privilege mode.
W25When clear, stores and AMOs cause an Access Fault for the matching region and privilege mode.
R24When clear, loads cause an Access Fault for the matching region and privilege mode.

The combination of R = 0, W = 1 is reserved.

Fields from riscv-unified-db; field types computed by IDL functions there are not shown.

Specification and related pages