From: yechao-w <[email protected]>

The macro MMU_USER_IDX is unused, and its defined value is incorrect.
It should be MMUIdx_U(0), which is defined in target/riscv/internals.h.
Therefore, remove the macro definition of MMU_USER_IDX.

Signed-off-by: yechao-w <[email protected]>
---
 target/riscv/cpu.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 90b3e95105..e3899b49ef 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -172,8 +172,6 @@ extern RISCVCPUImpliedExtsRule 
*riscv_multi_ext_implied_rules[];
 
 #define RISCV_IMPLIED_EXTS_RULE_END -1
 
-#define MMU_USER_IDX 3
-
 #define MAX_RISCV_PMPS (64)
 #define OLD_MAX_RISCV_PMPS (16)
 #define MIN_RISCV_PMP_GRANULARITY 4
-- 
2.27.0

Reply via email to