On 3/27/23 01:08, Weiwei Li wrote:
Directly use env->virt_enabled instead.
Suggested-by: LIU Zhiwei<zhiwei_...@linux.alibaba.com>
Signed-off-by: Weiwei Li<liwei...@iscas.ac.cn>
Signed-off-by: Junqiang Wang<wangjunqi...@iscas.ac.cn>
---
target/riscv/cpu.c | 2 +-
target/riscv/cpu.h | 1 -
target/riscv/cpu_helper.c | 51 ++++++++++++++++++---------------------
target/riscv/csr.c | 46 +++++++++++++++++------------------
target/riscv/debug.c | 10 ++++----
target/riscv/op_helper.c | 18 +++++++-------
target/riscv/pmu.c | 4 +--
target/riscv/translate.c | 2 +-
8 files changed, 64 insertions(+), 70 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~