[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/8] target/riscv: Remove check on RVH for riscv_cpu_set_virt_ena
From: |
Weiwei Li |
Subject: |
[PATCH 4/8] target/riscv: Remove check on RVH for riscv_cpu_set_virt_enabled |
Date: |
Fri, 24 Mar 2023 20:38:05 +0800 |
In current implementation, riscv_cpu_set_virt_enabled is only called when
RVH is enabled.
Signed-off-by: Weiwei Li <liweiwei@iscas.ac.cn>
Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn>
---
target/riscv/cpu_helper.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/target/riscv/cpu_helper.c b/target/riscv/cpu_helper.c
index 62fd2c90f1..3862e7b677 100644
--- a/target/riscv/cpu_helper.c
+++ b/target/riscv/cpu_helper.c
@@ -565,10 +565,6 @@ bool riscv_cpu_virt_enabled(CPURISCVState *env)
void riscv_cpu_set_virt_enabled(CPURISCVState *env, bool enable)
{
- if (!riscv_has_ext(env, RVH)) {
- return;
- }
-
/* Flush the TLB on all virt mode changes. */
if (get_field(env->virt, VIRT_ONOFF) != enable) {
tlb_flush(env_cpu(env));
--
2.25.1
- [PATCH 0/8] target/riscv: Simplification for RVH related check and code style fix, Weiwei Li, 2023/03/24
- [PATCH 1/8] target/riscv: Remove redundant call to riscv_cpu_virt_enabled, Weiwei Li, 2023/03/24
- [PATCH 3/8] target/riscv: Remove check on RVH for riscv_cpu_virt_enabled, Weiwei Li, 2023/03/24
- [PATCH 5/8] target/riscv: Remove redundant parentheses, Weiwei Li, 2023/03/24
- [PATCH 2/8] target/riscv: Remove redundant check on RVH, Weiwei Li, 2023/03/24
- [PATCH 4/8] target/riscv: Remove check on RVH for riscv_cpu_set_virt_enabled,
Weiwei Li <=
- [PATCH 7/8] target/riscv: Fix format for comments, Weiwei Li, 2023/03/24
- [PATCH 8/8] target/riscv: Fix lines with over 80 characters, Weiwei Li, 2023/03/24
- [PATCH 6/8] target/riscv: Fix format for indentation, Weiwei Li, 2023/03/24
- Re: [PATCH 0/8] target/riscv: Simplification for RVH related check and code style fix, LIU Zhiwei, 2023/03/25