PMP Configuration Register 12
PMP entry configuration
| 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pmp51cfg | pmp50cfg | pmp49cfg | pmp48cfg |
| 63:56 | 55:48 | 47:40 | 39:32 | 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pmp55cfg | pmp54cfg | pmp53cfg | pmp52cfg | pmp51cfg | pmp50cfg | pmp49cfg | pmp48cfg |
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| [7:0] | pmp48cfg | *PMP configuration for entry 48* The bits are as follows: ! Name ! Location ! Description h! L ! 7 ! Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry. h! MT ! 6:5 ! When 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. h! A ! 4:3 a! 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 h! X ! 2 ! When clear, instruction fetches cause an `Access Fault` for the matching region and privilege mode. h! W ! 1 ! When clear, stores and AMOs cause an `Access Fault` for the matching region and privilege mode. h! R ! 0 ! When clear, loads cause an `Access Fault` for the matching region and privilege mode. The combination of R = 0, W = 1 is reserved. | if (NUM_USABLE_PMP_ENTRIES > 48) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [15:8] | pmp49cfg | *PMP configuration for entry 49* The bits are as follows: ! Name ! Location ! Description h! L ! 15 ! Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry. h! MT ! 14:13 ! When 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. h! A ! 12:11 a! 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 h! X ! 10 ! When clear, instruction fetches cause an `Access Fault` for the matching region and privilege mode. h! W ! 9 ! When clear, stores and AMOs cause an `Access Fault` for the matching region and privilege mode. h! R ! 8 ! When clear, loads cause an `Access Fault` for the matching region and privilege mode. The combination of R = 0, W = 1 is reserved. | if (NUM_USABLE_PMP_ENTRIES > 49) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [23:16] | pmp50cfg | *PMP configuration for entry 50* The bits are as follows: ! Name ! Location ! Description h! L ! 23 ! Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry. h! MT ! 22:21 ! When 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. h! A ! 20:19 a! 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 h! X ! 18 ! When clear, instruction fetches cause an `Access Fault` for the matching region and privilege mode. h! W ! 17 ! When clear, stores and AMOs cause an `Access Fault` for the matching region and privilege mode. h! R ! 16 ! When clear, loads cause an `Access Fault` for the matching region and privilege mode. The combination of R = 0, W = 1 is reserved. | if (NUM_USABLE_PMP_ENTRIES > 50) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [31:24] | pmp51cfg | *PMP configuration for entry 51* The bits are as follows: ! Name ! Location ! Description h! L ! 31 ! Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry. h! MT ! 30:29 ! When 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. h! A ! 28:27 a! 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 h! X ! 26 ! When clear, instruction fetches cause an `Access Fault` for the matching region and privilege mode. h! W ! 25 ! When clear, stores and AMOs cause an `Access Fault` for the matching region and privilege mode. h! R ! 24 ! When clear, loads cause an `Access Fault` for the matching region and privilege mode. The combination of R = 0, W = 1 is reserved. | if (NUM_USABLE_PMP_ENTRIES > 51) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [39:32] | pmp52cfg | *PMP configuration for entry 52* The bits are as follows: ! Name ! Location ! Description h! L ! 39 ! Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry. h! MT ! 38:37 ! When 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. h! A ! 36:35 a! 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 h! X ! 34 ! When clear, instruction fetches cause an `Access Fault` for the matching region and privilege mode. h! W ! 33 ! When clear, stores and AMOs cause an `Access Fault` for the matching region and privilege mode. h! R ! 32 ! When clear, loads cause an `Access Fault` for the matching region and privilege mode. The combination of R = 0, W = 1 is reserved. | if (NUM_USABLE_PMP_ENTRIES > 52) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [47:40] | pmp53cfg | *PMP configuration for entry 53* The bits are as follows: ! Name ! Location ! Description h! L ! 47 ! Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry. h! MT ! 46:45 ! When 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. h! A ! 44:43 a! 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 h! X ! 42 ! When clear, instruction fetches cause an `Access Fault` for the matching region and privilege mode. h! W ! 41 ! When clear, stores and AMOs cause an `Access Fault` for the matching region and privilege mode. h! R ! 40 ! When clear, loads cause an `Access Fault` for the matching region and privilege mode. The combination of R = 0, W = 1 is reserved. | if (NUM_USABLE_PMP_ENTRIES > 53) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [55:48] | pmp54cfg | *PMP configuration for entry 54* The bits are as follows: ! Name ! Location ! Description h! L ! 55 ! Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry. h! MT ! 54:53 ! When 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. h! A ! 52:51 a! 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 h! X ! 50 ! When clear, instruction fetches cause an `Access Fault` for the matching region and privilege mode. h! W ! 49 ! When clear, stores and AMOs cause an `Access Fault` for the matching region and privilege mode. h! R ! 48 ! When clear, loads cause an `Access Fault` for the matching region and privilege mode. The combination of R = 0, W = 1 is reserved. | if (NUM_USABLE_PMP_ENTRIES > 54) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [63:56] | pmp55cfg | *PMP configuration for entry 55* The bits are as follows: ! Name ! Location ! Description h! L ! 63 ! Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry. h! MT ! 62:61 ! When 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. h! A ! 60:59 a! 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 h! X ! 58 ! When clear, instruction fetches cause an `Access Fault` for the matching region and privilege mode. h! W ! 57 ! When clear, stores and AMOs cause an `Access Fault` for the matching region and privilege mode. h! R ! 56 ! When clear, loads cause an `Access Fault` for the matching region and privilege mode. The combination of R = 0, W = 1 is reserved. | if (NUM_USABLE_PMP_ENTRIES > 55) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; |
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.