On 10/1/25 12:32 AM, Anton Johansson wrote:
According to version 20250508 of the privileged specification,
mhpmconter is a 64-bit register and mhpmcounterh refers to the top
32 bits of this register when XLEN == 32. No real advantage is
gained by keeping them separate, and combining allows for slight
simplification.
Note, the cpu/pmu VMSTATE version is bumped breaking migration from
older versions.
Signed-off-by: Anton Johansson <[email protected]>
---
target/riscv/cpu.h | 8 +--
target/riscv/csr.c | 74 +++++++++++++--------------
target/riscv/machine.c | 10 ++--
target/riscv/pmu.c | 111 +++++++++++------------------------------
4 files changed, 70 insertions(+), 133 deletions(-)
With assert being fixed,
Reviewed-by: Pierrick Bouvier <[email protected]>