← Home

pmpcfg3

PMP Configuration Register 3

Address: 0x3A3 (931) · Privilege: M · Length: MXLEN · Writable · Defined by: Sm and RV32 and NUM_PMP_ENTRIES > 0

PMP entry configuration

Fields

RV32

31:2423:1615:87:0
pmp15cfgpmp14cfgpmp13cfgpmp12cfg

RV64

63:5655:4847:4039:3231:2423:1615:87:0
—pmp15cfgpmp14cfgpmp13cfgpmp12cfg
BitsFieldAliasDescriptionTypeReset
[7:0]pmp12cfg*PMP configuration for entry 12* 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 > 12) {
  return CsrFieldType::RWR;
} else {
  # entry is either not implemented or implemented as read-only zero
  return CsrFieldType::RO;
}
return 0;
[15:8]pmp13cfg*PMP configuration for entry 13* 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 > 13) {
  return CsrFieldType::RWR;
} else {
  # entry is either not implemented or implemented as read-only zero
  return CsrFieldType::RO;
}
return 0;
[23:16]pmp14cfg*PMP configuration for entry 14* 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 > 14) {
  return CsrFieldType::RWR;
} else {
  # entry is either not implemented or implemented as read-only zero
  return CsrFieldType::RO;
}
return 0;
[31:24]pmp15cfg*PMP configuration for entry 15* 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 > 15) {
  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.