diff mbox series

[v2,20/23] target/rx: Use MMU_INDEX() helper

Message ID 20230806121732.91853-21-deller@gmx.de
State New
Headers show
Series Introduce MMU_INDEX() | expand

Commit Message

Helge Deller Aug. 6, 2023, 12:17 p.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/rx/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.41.0
diff mbox series

Patch

diff --git a/target/rx/cpu.h b/target/rx/cpu.h
index 7f03ffcfed..bb19a456d3 100644
--- a/target/rx/cpu.h
+++ b/target/rx/cpu.h
@@ -154,7 +154,7 @@  static inline void cpu_get_tb_cpu_state(CPURXState *env, vaddr *pc,

 static inline int cpu_mmu_index(CPURXState *env, bool ifetch)
 {
-    return 0;
+    return MMU_INDEX(0);
 }

 static inline uint32_t rx_cpu_pack_psw(CPURXState *env)