Re: [PATCH 3/7] target/riscv: assert argument to set_satp_mode_max_supported is valid

2025-03-05 Thread Alistair Francis
On Wed, Feb 19, 2025 at 2:58 AM Paolo Bonzini wrote: > > Check that the argument to set_satp_mode_max_supported is valid for > the MXL value of the CPU. It would be a bug in the CPU definition > if it weren't. > > In fact, there is such a bug in riscv_bare_cpu_init(): not just > SV32 is not a val

[PATCH 3/7] target/riscv: assert argument to set_satp_mode_max_supported is valid

2025-02-18 Thread Paolo Bonzini
Check that the argument to set_satp_mode_max_supported is valid for the MXL value of the CPU. It would be a bug in the CPU definition if it weren't. In fact, there is such a bug in riscv_bare_cpu_init(): not just SV32 is not a valid VM mode for 64-bit CPUs, SV64 is not a valid VM mode at all, not