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/openrisc/cpu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {\ -- 2.41.0