target/riscv: Remove redundant call to riscv_cpu_virt_enabled
authorWeiwei Li <liweiwei@iscas.ac.cn>
Mon, 27 Mar 2023 08:08:49 +0000 (16:08 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 5 May 2023 00:49:50 +0000 (10:49 +1000)
commit2136b6c30c0f0a4653163dd2f72a01a96ad778d2
tree60022be1c548673bd7564b9c82d9dcdc53e32b3a
parentdf3ac6da476e346a17bad5bc843de1135a269229
target/riscv: Remove redundant call to riscv_cpu_virt_enabled

The assignment is done under the condition riscv_cpu_virt_enabled()=true.

Signed-off-by: Weiwei Li <liweiwei@iscas.ac.cn>
Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230327080858.39703-2-liweiwei@iscas.ac.cn>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu_helper.c