qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Helge Deller
Subject: [PATCH v2 20/23] target/rx: Use MMU_INDEX() helper
Date: Sun, 6 Aug 2023 14:17:29 +0200

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(-)

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)
--
2.41.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]