PMP Configuration Register 10
PMP entry configuration
| 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pmp43cfg | pmp42cfg | pmp41cfg | pmp40cfg |
| 63:56 | 55:48 | 47:40 | 39:32 | 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pmp47cfg | pmp46cfg | pmp45cfg | pmp44cfg | pmp43cfg | pmp42cfg | pmp41cfg | pmp40cfg |
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| [7:0] | pmp40cfg | *PMP configuration for entry 40* 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 > 40) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [15:8] | pmp41cfg | *PMP configuration for entry 41* 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 > 41) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [23:16] | pmp42cfg | *PMP configuration for entry 42* 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 > 42) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [31:24] | pmp43cfg | *PMP configuration for entry 43* 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 > 43) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [39:32] | pmp44cfg | *PMP configuration for entry 44* 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 > 44) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [47:40] | pmp45cfg | *PMP configuration for entry 45* 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 > 45) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [55:48] | pmp46cfg | *PMP configuration for entry 46* 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 > 46) {
return CsrFieldType::RWR;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; | |
| [63:56] | pmp47cfg | *PMP configuration for entry 47* 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 > 47) {
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.