PMP Address 25
PMP entry address
| 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ADDR | |||||||||||||||||||||||||||||||
| 63:56 | 55:48 | 47:40 | 39:32 | 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ADDR | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| RV32 [31:0] RV64 [63:0] | ADDR | Bits PHYS_ADDR_WIDTH-1:2 of the address specifier for PMP entry 25 (or, if `pmp26cfg.A` == TOR, for PMP entry 26). | if (NUM_USABLE_PMP_ENTRIES > 25) {
return CsrFieldType::RW;
} else {
# entry is either not implemented or implemented as read-only zero
return CsrFieldType::RO;
} | return 0; |
# when the mode is NAPOT and PMP_GRANULARITY >= 4,
# bits (PMP_GRANULARITY-4):0 must read as ones
if (MXLEN == 32) {
if ((PMP_GRANULARITY >= 4) &&
(CSR[pmpcfg6].pmp25cfg[4] == 1)) {
return CSR[pmpaddr25].ADDR | {PMP_GRANULARITY-3{1'b1}};
# when the mode is OFF or TOR and PMP_GRANULARITY >= 3,
# bits (PMP_GRANULARITY-3):0 must read as zeros
} else if ((PMP_GRANULARITY >= 3) &&
(CSR[pmpcfg6].pmp25cfg[4] == 0)) {
Bits<PHYS_ADDR_WIDTH-2> mask = {PMP_GRANULARITY-2{1'b1}};
return CSR[pmpaddr25].ADDR & ~mask;
# no modifications needed
} else {
return CSR[pmpaddr25].ADDR;
}
} else {
if ((PMP_GRANULARITY >= 4) &&
(CSR[pmpcfg6].pmp25cfg[4] == 1)) {
return CSR[pmpaddr25].ADDR | {PMP_GRANULARITY-3{1'b1}};
# when the mode is OFF or TOR and PMP_GRANULARITY >= 3,
# bits (PMP_GRANULARITY-3):0 must read as zeros
} else if ((PMP_GRANULARITY >= 3) &&
(CSR[pmpcfg6].pmp25cfg[4] == 0)) {
Bits<PHYS_ADDR_WIDTH-2> mask = {PMP_GRANULARITY-2{1'b1}};
return CSR[pmpaddr25].ADDR & ~mask;
# no modifications needed
} else {
return CSR[pmpaddr25].ADDR;
}
}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.