Webcentive RISC-V Reference

pmpcfg2

Physical memory protection configuration

Address
0x3A2
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
Name in riscv-unified-db
PMP Configuration Register 2

Privileged spec: Physical memory protection configuration

Description

PMP entry configuration

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
pmp8cfg7-0

PMP configuration for entry 8

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.

pmp9cfg15-8

PMP configuration for entry 9

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.

pmp10cfg23-16

PMP configuration for entry 10

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.

pmp11cfg31-24

PMP configuration for entry 11

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.

pmp12cfg39-32

PMP configuration for entry 12

The bits are as follows:

NameLocationDescription
L39Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry.
MT38:37When 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.
A36:35
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
X34When clear, instruction fetches cause an Access Fault for the matching region and privilege mode.
W33When clear, stores and AMOs cause an Access Fault for the matching region and privilege mode.
R32When clear, loads cause an Access Fault for the matching region and privilege mode.

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

pmp13cfg47-40

PMP configuration for entry 13

The bits are as follows:

NameLocationDescription
L47Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry.
MT46:45When 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.
A44:43
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
X42When clear, instruction fetches cause an Access Fault for the matching region and privilege mode.
W41When clear, stores and AMOs cause an Access Fault for the matching region and privilege mode.
R40When clear, loads cause an Access Fault for the matching region and privilege mode.

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

pmp14cfg55-48

PMP configuration for entry 14

The bits are as follows:

NameLocationDescription
L55Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry.
MT54:53When 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.
A52:51
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
X50When clear, instruction fetches cause an Access Fault for the matching region and privilege mode.
W49When clear, stores and AMOs cause an Access Fault for the matching region and privilege mode.
R48When clear, loads cause an Access Fault for the matching region and privilege mode.

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

pmp15cfg63-56

PMP configuration for entry 15

The bits are as follows:

NameLocationDescription
L63Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry.
MT62:61When 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.
A60:59
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
X58When clear, instruction fetches cause an Access Fault for the matching region and privilege mode.
W57When clear, stores and AMOs cause an Access Fault for the matching region and privilege mode.
R56When 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