On 10/1/25 12:32 AM, Anton Johansson wrote:
This commits groups together all CPUArchState fields whose behaviour can
be retained by simply changing the size of the field.

Note, senvcfg is defined to be SXLEN bits wide, but is widened to 64
bits to match henvcfg and menvcfg.  Next, [m|h]edeleg are changed to
64 bits as defined privileged specification, and hvictl is fixed to 32
bits which holds all relevant values, see HVICTL_VALID_MASK.  The
remaining fields touched in the commit are widened from [H|S|M]XLEN
to 64-bit.

Note, the cpu/hyper, cpu/envcfg, cpu/jvt, and cpu VMSTATE versions are
bumped, breaking migration from older versions.

References to the privileged/unprivileged RISCV specification refer to
version 20250508.

Signed-off-by: Anton Johansson <[email protected]>
---
  target/riscv/cpu.h     | 78 +++++++++++++++++++--------------------
  target/riscv/machine.c | 84 +++++++++++++++++++++---------------------
  2 files changed, 81 insertions(+), 81 deletions(-)

Reviewed-by: Pierrick Bouvier <[email protected]>


Reply via email to