target/riscv: Replace riscv_cpu_is_32bit with riscv_cpu_mxl
commitdb23e5d981ab22da0bfe1150f4828d08484b1fba
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 20 Oct 2021 03:16:58 +0000 (19 20:16 -0700)
committerAlistair Francis <alistair@alistair23.me>
Thu, 21 Oct 2021 21:47:51 +0000 (22 07:47 +1000)
tree14f4f3929206ac712fbdd06c0ab06b264e6b6d39
parente91a7227cb802ea62ffa14707ebc2f588b01213d
target/riscv: Replace riscv_cpu_is_32bit with riscv_cpu_mxl

Shortly, the set of supported XL will not be just 32 and 64,
and representing that properly using the enumeration will be
imperative.

Two places, booting and gdb, intentionally use misa_mxl_max
to emphasize the use of the reset value of misa.mxl, and not
the current cpu state.

Reviewed-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20211020031709.359469-5-richard.henderson@linaro.org
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/boot.c
semihosting/arm-compat-semi.c
target/riscv/cpu.c
target/riscv/cpu.h
target/riscv/cpu_helper.c
target/riscv/csr.c
target/riscv/gdbstub.c
target/riscv/monitor.c