← Home

pmpcfg6

PMP Configuration Register 6

Address: 0x3A6 (934) · Privilege: M · Length: MXLEN · Writable · Defined by: Sm and NUM_PMP_ENTRIES > 16

PMP entry configuration

Fields

RV32

31:2423:1615:87:0
pmp27cfgpmp26cfgpmp25cfgpmp24cfg

RV64

63:5655:4847:4039:3231:2423:1615:87:0
pmp31cfgpmp30cfgpmp29cfgpmp28cfgpmp27cfgpmp26cfgpmp25cfgpmp24cfg
BitsFieldAliasDescriptionTypeReset
[7:0]pmp24cfg*PMP configuration for entry 24* 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 > 24) {
  return CsrFieldType::RWR;
} else {
  # entry is either not implemented or implemented as read-only zero
  return CsrFieldType::RO;
}
return 0;
[15:8]pmp25cfg*PMP configuration for entry 25* 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 > 25) {
  return CsrFieldType::RWR;
} else {
  # entry is either not implemented or implemented as read-only zero
  return CsrFieldType::RO;
}
return 0;
[23:16]pmp26cfg*PMP configuration for entry 26* 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 > 26) {
  return CsrFieldType::RWR;
} else {
  # entry is either not implemented or implemented as read-only zero
  return CsrFieldType::RO;
}
return 0;
[31:24]pmp27cfg*PMP configuration for entry 27* 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 > 27) {
  return CsrFieldType::RWR;
} else {
  # entry is either not implemented or implemented as read-only zero
  return CsrFieldType::RO;
}
return 0;
[39:32]pmp28cfg*PMP configuration for entry 28* 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 > 28) {
  return CsrFieldType::RWR;
} else {
  # entry is either not implemented or implemented as read-only zero
  return CsrFieldType::RO;
}
return 0;
[47:40]pmp29cfg*PMP configuration for entry 29* 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 > 29) {
  return CsrFieldType::RWR;
} else {
  # entry is either not implemented or implemented as read-only zero
  return CsrFieldType::RO;
}
return 0;
[55:48]pmp30cfg*PMP configuration for entry 30* 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 > 30) {
  return CsrFieldType::RWR;
} else {
  # entry is either not implemented or implemented as read-only zero
  return CsrFieldType::RO;
}
return 0;
[63:56]pmp31cfg*PMP configuration for entry 31* 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 > 31) {
  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.