CSR Bit Fields

RISC-V pmpcfg11 CSR Register

Address 0x3ABPrivilege MachineAccess RW / RV32 only / 32-bitMachine physical memory protection CSRs

pmpcfg11 is an RV32-only physical memory protection configuration CSR; odd-numbered pmpcfg CSRs are illegal on RV64.

Field Map

Understand pmpcfg11 By Bit Fields

24 key fields
7

pmp44cfg.L

RW

Lock bit for PMP entry 44.

pmp44cfg.L (bit 7) — Lock bit for PMP entry 44.

What This Field Controls

  • - Lock bit for PMP entry 44.

Common Values

pmp44cfg.L
0Unlocked

PMP entry 44 is not locked; this entry's configuration may be modified under WARL rules. M-mode accesses matching this entry succeed, and R/W/X permissions constrain only S/U effective-privilege accesses. Note that pmpaddr44 may still be locked by a later locked TOR entry.

1Locked

PMP entry 44 is locked; writes to pmp44cfg and pmpaddr44 are ignored until hart reset, and R/W/X permissions apply to all privilege modes. If A=TOR, pmpaddr43 is also locked.

Open Official Manual
6:5

pmp44cfg.reserved

RO

Reserved bits for PMP entry 44; writes follow WARL/reserved-bit rules.

pmp44cfg.reserved (bits 6:5) — Reserved bits for PMP entry 44; writes follow WARL/reserved-bit rules.

What This Field Controls

  • - Reserved bits for PMP entry 44; writes follow WARL/reserved-bit rules.

Common Values

This field is better understood together with surrounding context than as a fixed memorized enumeration.

Open Official Manual
4:3

pmp44cfg.A

RW

Address-matching mode for PMP entry 44.

pmp44cfg.A (bits 4:3) — Address-matching mode for PMP entry 44.

What This Field Controls

  • - Address-matching mode for PMP entry 44.

Common Values

pmp44cfg.A
0OFF

PMP entry 44 is disabled and matches no addresses.

1TOR

PMP entry 44 uses top-of-range matching; the upper bound comes from pmpaddr44, and the lower bound comes from pmpaddr43.

2NA4

PMP entry 44 matches a naturally aligned four-byte region; if the platform PMP grain does not support NA4, this encoding is not selectable.

3NAPOT

PMP entry 44 matches a naturally aligned power-of-two region of at least 8 bytes, with the size encoded in low-order bits of pmpaddr44.

Open Official Manual
2

pmp44cfg.X

RW

Execute permission for PMP entry 44.

pmp44cfg.X (bit 2) — Execute permission for PMP entry 44.

What This Field Controls

  • - Execute permission for PMP entry 44.

Common Values

pmp44cfg.X
0Execute denied

PMP entry 44 does not grant execute permission; matching S/U instruction fetches fail, while M-mode instruction fetches are constrained by this bit only when this entry is locked.

1Execute permitted

PMP entry 44 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
1

pmp44cfg.W

RW

Write permission for PMP entry 44.

pmp44cfg.W (bit 1) — Write permission for PMP entry 44.

What This Field Controls

  • - Write permission for PMP entry 44.

Common Values

pmp44cfg.W
0Write denied

PMP entry 44 does not grant write permission; matching S/U store, AMO, and other write-class accesses fail, while M-mode writes are constrained by this bit only when this entry is locked.

1Write permitted (requires R=1)

PMP entry 44 grants write permission only when R=1; the R=0 and W=1 combination is officially reserved and is not a portable configuration.

Open Official Manual
0

pmp44cfg.R

RW

Read permission for PMP entry 44.

pmp44cfg.R (bit 0) — Read permission for PMP entry 44.

What This Field Controls

  • - Read permission for PMP entry 44.

Common Values

pmp44cfg.R
0Read denied

PMP entry 44 does not grant read permission; matching S/U read accesses fail, while M-mode reads are constrained by this bit only when this entry is locked.

1Read permitted

PMP entry 44 grants read permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
15

pmp45cfg.L

RW

Lock bit for PMP entry 45.

pmp45cfg.L (bit 15) — Lock bit for PMP entry 45.

What This Field Controls

  • - Lock bit for PMP entry 45.

Common Values

pmp45cfg.L
0Unlocked

PMP entry 45 is not locked; this entry's configuration may be modified under WARL rules. M-mode accesses matching this entry succeed, and R/W/X permissions constrain only S/U effective-privilege accesses. Note that pmpaddr45 may still be locked by a later locked TOR entry.

1Locked

PMP entry 45 is locked; writes to pmp45cfg and pmpaddr45 are ignored until hart reset, and R/W/X permissions apply to all privilege modes. If A=TOR, pmpaddr44 is also locked.

Open Official Manual
14:13

pmp45cfg.reserved

RO

Reserved bits for PMP entry 45; writes follow WARL/reserved-bit rules.

pmp45cfg.reserved (bits 14:13) — Reserved bits for PMP entry 45; writes follow WARL/reserved-bit rules.

What This Field Controls

  • - Reserved bits for PMP entry 45; writes follow WARL/reserved-bit rules.

Common Values

This field is better understood together with surrounding context than as a fixed memorized enumeration.

Open Official Manual
12:11

pmp45cfg.A

RW

Address-matching mode for PMP entry 45.

pmp45cfg.A (bits 12:11) — Address-matching mode for PMP entry 45.

What This Field Controls

  • - Address-matching mode for PMP entry 45.

Common Values

pmp45cfg.A
0OFF

PMP entry 45 is disabled and matches no addresses.

1TOR

PMP entry 45 uses top-of-range matching; the upper bound comes from pmpaddr45, and the lower bound comes from pmpaddr44.

2NA4

PMP entry 45 matches a naturally aligned four-byte region; if the platform PMP grain does not support NA4, this encoding is not selectable.

3NAPOT

PMP entry 45 matches a naturally aligned power-of-two region of at least 8 bytes, with the size encoded in low-order bits of pmpaddr45.

Open Official Manual
10

pmp45cfg.X

RW

Execute permission for PMP entry 45.

pmp45cfg.X (bit 10) — Execute permission for PMP entry 45.

What This Field Controls

  • - Execute permission for PMP entry 45.

Common Values

pmp45cfg.X
0Execute denied

PMP entry 45 does not grant execute permission; matching S/U instruction fetches fail, while M-mode instruction fetches are constrained by this bit only when this entry is locked.

1Execute permitted

PMP entry 45 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
9

pmp45cfg.W

RW

Write permission for PMP entry 45.

pmp45cfg.W (bit 9) — Write permission for PMP entry 45.

What This Field Controls

  • - Write permission for PMP entry 45.

Common Values

pmp45cfg.W
0Write denied

PMP entry 45 does not grant write permission; matching S/U store, AMO, and other write-class accesses fail, while M-mode writes are constrained by this bit only when this entry is locked.

1Write permitted (requires R=1)

PMP entry 45 grants write permission only when R=1; the R=0 and W=1 combination is officially reserved and is not a portable configuration.

Open Official Manual
8

pmp45cfg.R

RW

Read permission for PMP entry 45.

pmp45cfg.R (bit 8) — Read permission for PMP entry 45.

What This Field Controls

  • - Read permission for PMP entry 45.

Common Values

pmp45cfg.R
0Read denied

PMP entry 45 does not grant read permission; matching S/U read accesses fail, while M-mode reads are constrained by this bit only when this entry is locked.

1Read permitted

PMP entry 45 grants read permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
23

pmp46cfg.L

RW

Lock bit for PMP entry 46.

pmp46cfg.L (bit 23) — Lock bit for PMP entry 46.

What This Field Controls

  • - Lock bit for PMP entry 46.

Common Values

pmp46cfg.L
0Unlocked

PMP entry 46 is not locked; this entry's configuration may be modified under WARL rules. M-mode accesses matching this entry succeed, and R/W/X permissions constrain only S/U effective-privilege accesses. Note that pmpaddr46 may still be locked by a later locked TOR entry.

1Locked

PMP entry 46 is locked; writes to pmp46cfg and pmpaddr46 are ignored until hart reset, and R/W/X permissions apply to all privilege modes. If A=TOR, pmpaddr45 is also locked.

Open Official Manual
22:21

pmp46cfg.reserved

RO

Reserved bits for PMP entry 46; writes follow WARL/reserved-bit rules.

pmp46cfg.reserved (bits 22:21) — Reserved bits for PMP entry 46; writes follow WARL/reserved-bit rules.

What This Field Controls

  • - Reserved bits for PMP entry 46; writes follow WARL/reserved-bit rules.

Common Values

This field is better understood together with surrounding context than as a fixed memorized enumeration.

Open Official Manual
20:19

pmp46cfg.A

RW

Address-matching mode for PMP entry 46.

pmp46cfg.A (bits 20:19) — Address-matching mode for PMP entry 46.

What This Field Controls

  • - Address-matching mode for PMP entry 46.

Common Values

pmp46cfg.A
0OFF

PMP entry 46 is disabled and matches no addresses.

1TOR

PMP entry 46 uses top-of-range matching; the upper bound comes from pmpaddr46, and the lower bound comes from pmpaddr45.

2NA4

PMP entry 46 matches a naturally aligned four-byte region; if the platform PMP grain does not support NA4, this encoding is not selectable.

3NAPOT

PMP entry 46 matches a naturally aligned power-of-two region of at least 8 bytes, with the size encoded in low-order bits of pmpaddr46.

Open Official Manual
18

pmp46cfg.X

RW

Execute permission for PMP entry 46.

pmp46cfg.X (bit 18) — Execute permission for PMP entry 46.

What This Field Controls

  • - Execute permission for PMP entry 46.

Common Values

pmp46cfg.X
0Execute denied

PMP entry 46 does not grant execute permission; matching S/U instruction fetches fail, while M-mode instruction fetches are constrained by this bit only when this entry is locked.

1Execute permitted

PMP entry 46 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
17

pmp46cfg.W

RW

Write permission for PMP entry 46.

pmp46cfg.W (bit 17) — Write permission for PMP entry 46.

What This Field Controls

  • - Write permission for PMP entry 46.

Common Values

pmp46cfg.W
0Write denied

PMP entry 46 does not grant write permission; matching S/U store, AMO, and other write-class accesses fail, while M-mode writes are constrained by this bit only when this entry is locked.

1Write permitted (requires R=1)

PMP entry 46 grants write permission only when R=1; the R=0 and W=1 combination is officially reserved and is not a portable configuration.

Open Official Manual
16

pmp46cfg.R

RW

Read permission for PMP entry 46.

pmp46cfg.R (bit 16) — Read permission for PMP entry 46.

What This Field Controls

  • - Read permission for PMP entry 46.

Common Values

pmp46cfg.R
0Read denied

PMP entry 46 does not grant read permission; matching S/U read accesses fail, while M-mode reads are constrained by this bit only when this entry is locked.

1Read permitted

PMP entry 46 grants read permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
31

pmp47cfg.L

RW

Lock bit for PMP entry 47.

pmp47cfg.L (bit 31) — Lock bit for PMP entry 47.

What This Field Controls

  • - Lock bit for PMP entry 47.

Common Values

pmp47cfg.L
0Unlocked

PMP entry 47 is not locked; this entry's configuration may be modified under WARL rules. M-mode accesses matching this entry succeed, and R/W/X permissions constrain only S/U effective-privilege accesses. Note that pmpaddr47 may still be locked by a later locked TOR entry.

1Locked

PMP entry 47 is locked; writes to pmp47cfg and pmpaddr47 are ignored until hart reset, and R/W/X permissions apply to all privilege modes. If A=TOR, pmpaddr46 is also locked.

Open Official Manual
30:29

pmp47cfg.reserved

RO

Reserved bits for PMP entry 47; writes follow WARL/reserved-bit rules.

pmp47cfg.reserved (bits 30:29) — Reserved bits for PMP entry 47; writes follow WARL/reserved-bit rules.

What This Field Controls

  • - Reserved bits for PMP entry 47; writes follow WARL/reserved-bit rules.

Common Values

This field is better understood together with surrounding context than as a fixed memorized enumeration.

Open Official Manual
28:27

pmp47cfg.A

RW

Address-matching mode for PMP entry 47.

pmp47cfg.A (bits 28:27) — Address-matching mode for PMP entry 47.

What This Field Controls

  • - Address-matching mode for PMP entry 47.

Common Values

pmp47cfg.A
0OFF

PMP entry 47 is disabled and matches no addresses.

1TOR

PMP entry 47 uses top-of-range matching; the upper bound comes from pmpaddr47, and the lower bound comes from pmpaddr46.

2NA4

PMP entry 47 matches a naturally aligned four-byte region; if the platform PMP grain does not support NA4, this encoding is not selectable.

3NAPOT

PMP entry 47 matches a naturally aligned power-of-two region of at least 8 bytes, with the size encoded in low-order bits of pmpaddr47.

Open Official Manual
26

pmp47cfg.X

RW

Execute permission for PMP entry 47.

pmp47cfg.X (bit 26) — Execute permission for PMP entry 47.

What This Field Controls

  • - Execute permission for PMP entry 47.

Common Values

pmp47cfg.X
0Execute denied

PMP entry 47 does not grant execute permission; matching S/U instruction fetches fail, while M-mode instruction fetches are constrained by this bit only when this entry is locked.

1Execute permitted

PMP entry 47 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
25

pmp47cfg.W

RW

Write permission for PMP entry 47.

pmp47cfg.W (bit 25) — Write permission for PMP entry 47.

What This Field Controls

  • - Write permission for PMP entry 47.

Common Values

pmp47cfg.W
0Write denied

PMP entry 47 does not grant write permission; matching S/U store, AMO, and other write-class accesses fail, while M-mode writes are constrained by this bit only when this entry is locked.

1Write permitted (requires R=1)

PMP entry 47 grants write permission only when R=1; the R=0 and W=1 combination is officially reserved and is not a portable configuration.

Open Official Manual
24

pmp47cfg.R

RW

Read permission for PMP entry 47.

pmp47cfg.R (bit 24) — Read permission for PMP entry 47.

What This Field Controls

  • - Read permission for PMP entry 47.

Common Values

pmp47cfg.R
0Read denied

PMP entry 47 does not grant read permission; matching S/U read accesses fail, while M-mode reads are constrained by this bit only when this entry is locked.

1Read permitted

PMP entry 47 grants read permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual

What To Check First When Reading This CSR

  • - First confirm that the current hart implements pmpcfg11; unimplemented or insufficiently privileged accesses raise an illegal-instruction exception.
  • - Use address 0x3AB and the lowest access privilege (Machine) to decide whether software may read it directly.
  • - Do not assume fixed values for reserved, WARL, or WLRL bits; interpret the value according to the specification and implementation.

Risk Checks Before Writing

  • - Preserve bits that are not being changed so reserved or implementation-defined fields are not written with invalid values.
  • - Prefer CSRRS/CSRRC for local set/clear operations to avoid CSRRW overwriting concurrently updated status bits.

Put It Back Into A Real Flow

1

During initialization or the relevant privileged flow, software reads pmpcfg11 to observe the current state.

2

Modify only the target fields while preserving all other bits.

3

Read back the CSR or validate through later trap, interrupt, or context-switch behavior that the setting took effect.