diff mbox series

[09/23] target/openrisc: Use MMU_INDEX() helper

Message ID 20230806120001.89130-10-deller@gmx.de (mailing list archive)
State New, archived
Headers show
Series Introduce MMU_INDEX() | expand

Commit Message

Helge Deller Aug. 6, 2023, 11:59 a.m. UTC
Use the new MMU_INDEX() helper to specify the index of the CPUTLB which
should be used.  Additionally, in a follow-up patch this helper allows
then to optimize the tcg code generation.

Signed-off-by: Helge Deller <deller@gmx.de>
---
 target/openrisc/cpu.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--
2.41.0
diff mbox series

Patch

diff --git a/target/openrisc/cpu.h b/target/openrisc/cpu.h
index ce4d605eb7..c216f2fb77 100644
--- a/target/openrisc/cpu.h
+++ b/target/openrisc/cpu.h
@@ -50,9 +50,9 @@  struct OpenRISCCPUClass {
 #define TARGET_INSN_START_EXTRA_WORDS 1

 enum {
-    MMU_NOMMU_IDX = 0,
-    MMU_SUPERVISOR_IDX = 1,
-    MMU_USER_IDX = 2,
+    MMU_NOMMU_IDX = MMU_INDEX(0),
+    MMU_SUPERVISOR_IDX = MMU_INDEX(1),
+    MMU_USER_IDX = MMU_INDEX(2),
 };

 #define SET_FP_CAUSE(reg, v)    do {\