target/riscv: Convert env->virt to a bool env->virt_enabled
authorLIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Mon, 27 Mar 2023 08:08:53 +0000 (16:08 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 5 May 2023 00:49:50 +0000 (10:49 +1000)
commitb3c5077befaebf2281515f36ddbf482f3e0818aa
treef8dc7e1af066d6705edee9459f2ae5e84f2729eb
parentc43732f505a8094449704db2bb5f08ee3fd60350
target/riscv: Convert env->virt to a bool env->virt_enabled

Currently we only use the env->virt to encode the virtual mode enabled
status. Let's make it a bool type.

Signed-off-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn>
Message-ID: <20230325145348.1208-1-zhiwei_liu@linux.alibaba.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230327080858.39703-6-liweiwei@iscas.ac.cn>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.h
target/riscv/cpu_bits.h
target/riscv/cpu_helper.c
target/riscv/machine.c
target/riscv/translate.c