arch/riscv/pmp: fix KernelProtectionPMP and KernelProtectionMMLEPMP constructors to work on rv64i
Author: lschuermannCreated Jul 28, 2026Updated Jul 28, 2026
Currently, both `KernelProtectionPMP` and `KernelProtectionMMLEPMP` constructors hard-code rv32i assumptions. While the actual configuration code-path has been ported in #4874, these still need to be fixed. It's OK to merge #4874 now though, as using these constructors on a 64-bit system will simply panic (`unreachable` arms in the pmpcfg CSRs).
Source: tock/tock