On 12/16/25 3:51 PM, Anton Johansson wrote:
KVM fields of CPURISCVState are now always exposed as CONFIG_KVM cannot
be used in common code.
riscv_cpu_mxl() is changed to return CPURISCVState::misa_mxl
unconditionally, as use of target_riscv64() would result in an extra
load and compare with TargetInfo::target_arch. We might as well just
perform a single load. Likewise, for cpu_recompute_xl(),
cpu_address_xl(), and riscv_cpu_sxl(), we opt for returning the
corresponding CPURISCVState field with ifdefs for system mode adding
extra conditions.
Signed-off-by: Anton Johansson <[email protected]>
---
target/riscv/cpu.h | 36 ++++++++----------------------------
1 file changed, 8 insertions(+), 28 deletions(-)
Reviewed-by: Pierrick Bouvier <[email protected]>