On 1/10/25 09:33, 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
Typo "declarations".
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.
Worth a privilege_mode_t typedef?
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: Philippe Mathieu-Daudé <[email protected]>
