On 15/5/26 20:04, Anton Johansson wrote:
[m|s|vs]iselect are defined in version 20250508 of the privileged
specification to be XLEN in size, however QEMU only ever uses at most
16 bits of these fields, so fix them to 16.  Update relevant function
arguments.

Signed-off-by: Anton Johansson <[email protected]>
Reviewed-by: Pierrick Bouvier <[email protected]>
Acked-by: Alistair Francis <[email protected]>
---
  target/riscv/cpu.h     |  6 +++---
  target/riscv/csr.c     | 32 ++++++++++++++++----------------
  target/riscv/machine.c |  6 +++---
  3 files changed, 22 insertions(+), 22 deletions(-)

-static inline int riscv_cpu_xlen(CPURISCVState *env)
+static inline uint16_t riscv_cpu_xlen(CPURISCVState *env)


Reply via email to