CSR Bit Fields

RISC-V pmpcfg12 CSR Register

Address 0x3ACPrivilege MachineAccess RW / XLENMachine physical memory protection CSRs

pmpcfg12 is a physical memory protection configuration CSR describing permissions, address matching, and lock bits for PMP regions.

Field Map

Understand pmpcfg12 By Bit Fields

48 key fields
7

pmp48cfg.L

RW

Lock bit for PMP entry 48.

pmp48cfg.L (bit 7) — Lock bit for PMP entry 48.

What This Field Controls

  • - Lock bit for PMP entry 48.

Common Values

pmp48cfg.L
0Unlocked

PMP entry 48 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 pmpaddr48 may still be locked by a later locked TOR entry.

1Locked

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

Open Official Manual
6:5

pmp48cfg.reserved

RO

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

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

What This Field Controls

  • - Reserved bits for PMP entry 48; 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

pmp48cfg.A

RW

Address-matching mode for PMP entry 48.

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

What This Field Controls

  • - Address-matching mode for PMP entry 48.

Common Values

pmp48cfg.A
0OFF

PMP entry 48 is disabled and matches no addresses.

1TOR

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

2NA4

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

3NAPOT

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

Open Official Manual
2

pmp48cfg.X

RW

Execute permission for PMP entry 48.

pmp48cfg.X (bit 2) — Execute permission for PMP entry 48.

What This Field Controls

  • - Execute permission for PMP entry 48.

Common Values

pmp48cfg.X
0Execute denied

PMP entry 48 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 48 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
1

pmp48cfg.W

RW

Write permission for PMP entry 48.

pmp48cfg.W (bit 1) — Write permission for PMP entry 48.

What This Field Controls

  • - Write permission for PMP entry 48.

Common Values

pmp48cfg.W
0Write denied

PMP entry 48 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 48 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

pmp48cfg.R

RW

Read permission for PMP entry 48.

pmp48cfg.R (bit 0) — Read permission for PMP entry 48.

What This Field Controls

  • - Read permission for PMP entry 48.

Common Values

pmp48cfg.R
0Read denied

PMP entry 48 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 48 grants read permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
15

pmp49cfg.L

RW

Lock bit for PMP entry 49.

pmp49cfg.L (bit 15) — Lock bit for PMP entry 49.

What This Field Controls

  • - Lock bit for PMP entry 49.

Common Values

pmp49cfg.L
0Unlocked

PMP entry 49 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 pmpaddr49 may still be locked by a later locked TOR entry.

1Locked

PMP entry 49 is locked; writes to pmp49cfg and pmpaddr49 are ignored until hart reset, and R/W/X permissions apply to all privilege modes. If A=TOR, pmpaddr48 is also locked.

Open Official Manual
14:13

pmp49cfg.reserved

RO

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

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

What This Field Controls

  • - Reserved bits for PMP entry 49; 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

pmp49cfg.A

RW

Address-matching mode for PMP entry 49.

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

What This Field Controls

  • - Address-matching mode for PMP entry 49.

Common Values

pmp49cfg.A
0OFF

PMP entry 49 is disabled and matches no addresses.

1TOR

PMP entry 49 uses top-of-range matching; the upper bound comes from pmpaddr49, and the lower bound comes from pmpaddr48.

2NA4

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

3NAPOT

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

Open Official Manual
10

pmp49cfg.X

RW

Execute permission for PMP entry 49.

pmp49cfg.X (bit 10) — Execute permission for PMP entry 49.

What This Field Controls

  • - Execute permission for PMP entry 49.

Common Values

pmp49cfg.X
0Execute denied

PMP entry 49 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 49 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
9

pmp49cfg.W

RW

Write permission for PMP entry 49.

pmp49cfg.W (bit 9) — Write permission for PMP entry 49.

What This Field Controls

  • - Write permission for PMP entry 49.

Common Values

pmp49cfg.W
0Write denied

PMP entry 49 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 49 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

pmp49cfg.R

RW

Read permission for PMP entry 49.

pmp49cfg.R (bit 8) — Read permission for PMP entry 49.

What This Field Controls

  • - Read permission for PMP entry 49.

Common Values

pmp49cfg.R
0Read denied

PMP entry 49 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 49 grants read permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
23

pmp50cfg.L

RW

Lock bit for PMP entry 50.

pmp50cfg.L (bit 23) — Lock bit for PMP entry 50.

What This Field Controls

  • - Lock bit for PMP entry 50.

Common Values

pmp50cfg.L
0Unlocked

PMP entry 50 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 pmpaddr50 may still be locked by a later locked TOR entry.

1Locked

PMP entry 50 is locked; writes to pmp50cfg and pmpaddr50 are ignored until hart reset, and R/W/X permissions apply to all privilege modes. If A=TOR, pmpaddr49 is also locked.

Open Official Manual
22:21

pmp50cfg.reserved

RO

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

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

What This Field Controls

  • - Reserved bits for PMP entry 50; 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

pmp50cfg.A

RW

Address-matching mode for PMP entry 50.

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

What This Field Controls

  • - Address-matching mode for PMP entry 50.

Common Values

pmp50cfg.A
0OFF

PMP entry 50 is disabled and matches no addresses.

1TOR

PMP entry 50 uses top-of-range matching; the upper bound comes from pmpaddr50, and the lower bound comes from pmpaddr49.

2NA4

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

3NAPOT

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

Open Official Manual
18

pmp50cfg.X

RW

Execute permission for PMP entry 50.

pmp50cfg.X (bit 18) — Execute permission for PMP entry 50.

What This Field Controls

  • - Execute permission for PMP entry 50.

Common Values

pmp50cfg.X
0Execute denied

PMP entry 50 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 50 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
17

pmp50cfg.W

RW

Write permission for PMP entry 50.

pmp50cfg.W (bit 17) — Write permission for PMP entry 50.

What This Field Controls

  • - Write permission for PMP entry 50.

Common Values

pmp50cfg.W
0Write denied

PMP entry 50 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 50 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

pmp50cfg.R

RW

Read permission for PMP entry 50.

pmp50cfg.R (bit 16) — Read permission for PMP entry 50.

What This Field Controls

  • - Read permission for PMP entry 50.

Common Values

pmp50cfg.R
0Read denied

PMP entry 50 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 50 grants read permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
31

pmp51cfg.L

RW

Lock bit for PMP entry 51.

pmp51cfg.L (bit 31) — Lock bit for PMP entry 51.

What This Field Controls

  • - Lock bit for PMP entry 51.

Common Values

pmp51cfg.L
0Unlocked

PMP entry 51 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 pmpaddr51 may still be locked by a later locked TOR entry.

1Locked

PMP entry 51 is locked; writes to pmp51cfg and pmpaddr51 are ignored until hart reset, and R/W/X permissions apply to all privilege modes. If A=TOR, pmpaddr50 is also locked.

Open Official Manual
30:29

pmp51cfg.reserved

RO

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

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

What This Field Controls

  • - Reserved bits for PMP entry 51; 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

pmp51cfg.A

RW

Address-matching mode for PMP entry 51.

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

What This Field Controls

  • - Address-matching mode for PMP entry 51.

Common Values

pmp51cfg.A
0OFF

PMP entry 51 is disabled and matches no addresses.

1TOR

PMP entry 51 uses top-of-range matching; the upper bound comes from pmpaddr51, and the lower bound comes from pmpaddr50.

2NA4

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

3NAPOT

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

Open Official Manual
26

pmp51cfg.X

RW

Execute permission for PMP entry 51.

pmp51cfg.X (bit 26) — Execute permission for PMP entry 51.

What This Field Controls

  • - Execute permission for PMP entry 51.

Common Values

pmp51cfg.X
0Execute denied

PMP entry 51 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 51 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
25

pmp51cfg.W

RW

Write permission for PMP entry 51.

pmp51cfg.W (bit 25) — Write permission for PMP entry 51.

What This Field Controls

  • - Write permission for PMP entry 51.

Common Values

pmp51cfg.W
0Write denied

PMP entry 51 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 51 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

pmp51cfg.R

RW

Read permission for PMP entry 51.

pmp51cfg.R (bit 24) — Read permission for PMP entry 51.

What This Field Controls

  • - Read permission for PMP entry 51.

Common Values

pmp51cfg.R
0Read denied

PMP entry 51 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 51 grants read permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
39

pmp52cfg.L

RW

Lock bit for PMP entry 52.

pmp52cfg.L (bit 39) — Lock bit for PMP entry 52.

What This Field Controls

  • - Lock bit for PMP entry 52.

Common Values

pmp52cfg.L
0Unlocked

PMP entry 52 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 pmpaddr52 may still be locked by a later locked TOR entry.

1Locked

PMP entry 52 is locked; writes to pmp52cfg and pmpaddr52 are ignored until hart reset, and R/W/X permissions apply to all privilege modes. If A=TOR, pmpaddr51 is also locked.

Open Official Manual
38:37

pmp52cfg.reserved

RO

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

pmp52cfg.reserved (bits 38:37) — Reserved bits for PMP entry 52; writes follow WARL/reserved-bit rules.

What This Field Controls

  • - Reserved bits for PMP entry 52; 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
36:35

pmp52cfg.A

RW

Address-matching mode for PMP entry 52.

pmp52cfg.A (bits 36:35) — Address-matching mode for PMP entry 52.

What This Field Controls

  • - Address-matching mode for PMP entry 52.

Common Values

pmp52cfg.A
0OFF

PMP entry 52 is disabled and matches no addresses.

1TOR

PMP entry 52 uses top-of-range matching; the upper bound comes from pmpaddr52, and the lower bound comes from pmpaddr51.

2NA4

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

3NAPOT

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

Open Official Manual
34

pmp52cfg.X

RW

Execute permission for PMP entry 52.

pmp52cfg.X (bit 34) — Execute permission for PMP entry 52.

What This Field Controls

  • - Execute permission for PMP entry 52.

Common Values

pmp52cfg.X
0Execute denied

PMP entry 52 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 52 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
33

pmp52cfg.W

RW

Write permission for PMP entry 52.

pmp52cfg.W (bit 33) — Write permission for PMP entry 52.

What This Field Controls

  • - Write permission for PMP entry 52.

Common Values

pmp52cfg.W
0Write denied

PMP entry 52 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 52 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
32

pmp52cfg.R

RW

Read permission for PMP entry 52.

pmp52cfg.R (bit 32) — Read permission for PMP entry 52.

What This Field Controls

  • - Read permission for PMP entry 52.

Common Values

pmp52cfg.R
0Read denied

PMP entry 52 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 52 grants read permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
47

pmp53cfg.L

RW

Lock bit for PMP entry 53.

pmp53cfg.L (bit 47) — Lock bit for PMP entry 53.

What This Field Controls

  • - Lock bit for PMP entry 53.

Common Values

pmp53cfg.L
0Unlocked

PMP entry 53 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 pmpaddr53 may still be locked by a later locked TOR entry.

1Locked

PMP entry 53 is locked; writes to pmp53cfg and pmpaddr53 are ignored until hart reset, and R/W/X permissions apply to all privilege modes. If A=TOR, pmpaddr52 is also locked.

Open Official Manual
46:45

pmp53cfg.reserved

RO

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

pmp53cfg.reserved (bits 46:45) — Reserved bits for PMP entry 53; writes follow WARL/reserved-bit rules.

What This Field Controls

  • - Reserved bits for PMP entry 53; 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
44:43

pmp53cfg.A

RW

Address-matching mode for PMP entry 53.

pmp53cfg.A (bits 44:43) — Address-matching mode for PMP entry 53.

What This Field Controls

  • - Address-matching mode for PMP entry 53.

Common Values

pmp53cfg.A
0OFF

PMP entry 53 is disabled and matches no addresses.

1TOR

PMP entry 53 uses top-of-range matching; the upper bound comes from pmpaddr53, and the lower bound comes from pmpaddr52.

2NA4

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

3NAPOT

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

Open Official Manual
42

pmp53cfg.X

RW

Execute permission for PMP entry 53.

pmp53cfg.X (bit 42) — Execute permission for PMP entry 53.

What This Field Controls

  • - Execute permission for PMP entry 53.

Common Values

pmp53cfg.X
0Execute denied

PMP entry 53 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 53 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
41

pmp53cfg.W

RW

Write permission for PMP entry 53.

pmp53cfg.W (bit 41) — Write permission for PMP entry 53.

What This Field Controls

  • - Write permission for PMP entry 53.

Common Values

pmp53cfg.W
0Write denied

PMP entry 53 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 53 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
40

pmp53cfg.R

RW

Read permission for PMP entry 53.

pmp53cfg.R (bit 40) — Read permission for PMP entry 53.

What This Field Controls

  • - Read permission for PMP entry 53.

Common Values

pmp53cfg.R
0Read denied

PMP entry 53 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 53 grants read permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
55

pmp54cfg.L

RW

Lock bit for PMP entry 54.

pmp54cfg.L (bit 55) — Lock bit for PMP entry 54.

What This Field Controls

  • - Lock bit for PMP entry 54.

Common Values

pmp54cfg.L
0Unlocked

PMP entry 54 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 pmpaddr54 may still be locked by a later locked TOR entry.

1Locked

PMP entry 54 is locked; writes to pmp54cfg and pmpaddr54 are ignored until hart reset, and R/W/X permissions apply to all privilege modes. If A=TOR, pmpaddr53 is also locked.

Open Official Manual
54:53

pmp54cfg.reserved

RO

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

pmp54cfg.reserved (bits 54:53) — Reserved bits for PMP entry 54; writes follow WARL/reserved-bit rules.

What This Field Controls

  • - Reserved bits for PMP entry 54; 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
52:51

pmp54cfg.A

RW

Address-matching mode for PMP entry 54.

pmp54cfg.A (bits 52:51) — Address-matching mode for PMP entry 54.

What This Field Controls

  • - Address-matching mode for PMP entry 54.

Common Values

pmp54cfg.A
0OFF

PMP entry 54 is disabled and matches no addresses.

1TOR

PMP entry 54 uses top-of-range matching; the upper bound comes from pmpaddr54, and the lower bound comes from pmpaddr53.

2NA4

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

3NAPOT

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

Open Official Manual
50

pmp54cfg.X

RW

Execute permission for PMP entry 54.

pmp54cfg.X (bit 50) — Execute permission for PMP entry 54.

What This Field Controls

  • - Execute permission for PMP entry 54.

Common Values

pmp54cfg.X
0Execute denied

PMP entry 54 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 54 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
49

pmp54cfg.W

RW

Write permission for PMP entry 54.

pmp54cfg.W (bit 49) — Write permission for PMP entry 54.

What This Field Controls

  • - Write permission for PMP entry 54.

Common Values

pmp54cfg.W
0Write denied

PMP entry 54 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 54 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
48

pmp54cfg.R

RW

Read permission for PMP entry 54.

pmp54cfg.R (bit 48) — Read permission for PMP entry 54.

What This Field Controls

  • - Read permission for PMP entry 54.

Common Values

pmp54cfg.R
0Read denied

PMP entry 54 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 54 grants read permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
63

pmp55cfg.L

RW

Lock bit for PMP entry 55.

pmp55cfg.L (bit 63) — Lock bit for PMP entry 55.

What This Field Controls

  • - Lock bit for PMP entry 55.

Common Values

pmp55cfg.L
0Unlocked

PMP entry 55 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 pmpaddr55 may still be locked by a later locked TOR entry.

1Locked

PMP entry 55 is locked; writes to pmp55cfg and pmpaddr55 are ignored until hart reset, and R/W/X permissions apply to all privilege modes. If A=TOR, pmpaddr54 is also locked.

Open Official Manual
62:61

pmp55cfg.reserved

RO

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

pmp55cfg.reserved (bits 62:61) — Reserved bits for PMP entry 55; writes follow WARL/reserved-bit rules.

What This Field Controls

  • - Reserved bits for PMP entry 55; 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
60:59

pmp55cfg.A

RW

Address-matching mode for PMP entry 55.

pmp55cfg.A (bits 60:59) — Address-matching mode for PMP entry 55.

What This Field Controls

  • - Address-matching mode for PMP entry 55.

Common Values

pmp55cfg.A
0OFF

PMP entry 55 is disabled and matches no addresses.

1TOR

PMP entry 55 uses top-of-range matching; the upper bound comes from pmpaddr55, and the lower bound comes from pmpaddr54.

2NA4

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

3NAPOT

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

Open Official Manual
58

pmp55cfg.X

RW

Execute permission for PMP entry 55.

pmp55cfg.X (bit 58) — Execute permission for PMP entry 55.

What This Field Controls

  • - Execute permission for PMP entry 55.

Common Values

pmp55cfg.X
0Execute denied

PMP entry 55 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 55 grants execute permission when this entry matches and other PMP, PMA, and privilege rules also allow the access.

Open Official Manual
57

pmp55cfg.W

RW

Write permission for PMP entry 55.

pmp55cfg.W (bit 57) — Write permission for PMP entry 55.

What This Field Controls

  • - Write permission for PMP entry 55.

Common Values

pmp55cfg.W
0Write denied

PMP entry 55 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 55 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
56

pmp55cfg.R

RW

Read permission for PMP entry 55.

pmp55cfg.R (bit 56) — Read permission for PMP entry 55.

What This Field Controls

  • - Read permission for PMP entry 55.

Common Values

pmp55cfg.R
0Read denied

PMP entry 55 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 55 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 pmpcfg12; unimplemented or insufficiently privileged accesses raise an illegal-instruction exception.
  • - Use address 0x3AC 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 pmpcfg12 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.