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 <del...@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