On 10/1/25 12:33 AM, Anton Johansson wrote:
The pmp.h header is exposed through cpu.h. pmp_table_t is also used in
CPUArchState. CSR declaraions are only used in target/ and are moved to
csr.h. In pmp.h, addr_reg is widened to 64 bits and the privilege mode
parameter is fixed to 8 bits, similar to previous commits.
Note, the cpu/pmp/entry and cpu/pmp VMSTATE versions are bumped, breaking
migration from older versions.
Signed-off-by: Anton Johansson <[email protected]>
---
target/riscv/csr.h | 12 ++++++++++++
target/riscv/pmp.h | 20 +++++---------------
target/riscv/machine.c | 10 +++++-----
target/riscv/pmp.c | 9 +++++----
4 files changed, 27 insertions(+), 24 deletions(-)
Reviewed-by: Pierrick Bouvier <[email protected]>