summaryrefslogtreecommitdiffstats
path: root/semihosting
diff options
context:
space:
mode:
authorRichard Henderson2021-10-20 05:16:58 +0200
committerAlistair Francis2021-10-21 23:47:51 +0200
commitdb23e5d981ab22da0bfe1150f4828d08484b1fba (patch)
tree14f4f3929206ac712fbdd06c0ab06b264e6b6d39 /semihosting
parenttarget/riscv: Split misa.mxl and misa.ext (diff)
downloadqemu-db23e5d981ab22da0bfe1150f4828d08484b1fba.tar.gz
qemu-db23e5d981ab22da0bfe1150f4828d08484b1fba.tar.xz
qemu-db23e5d981ab22da0bfe1150f4828d08484b1fba.zip
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>
Diffstat (limited to 'semihosting')
-rw-r--r--semihosting/arm-compat-semi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/semihosting/arm-compat-semi.c b/semihosting/arm-compat-semi.c
index 01badea99c..37963becae 100644
--- a/semihosting/arm-compat-semi.c
+++ b/semihosting/arm-compat-semi.c
@@ -775,7 +775,7 @@ static inline bool is_64bit_semihosting(CPUArchState *env)
#if defined(TARGET_ARM)
return is_a64(env);
#elif defined(TARGET_RISCV)
- return !riscv_cpu_is_32bit(env);
+ return riscv_cpu_mxl(env) != MXL_RV32;
#else
#error un-handled architecture
#endif