|
| From: | Richard Henderson |
| Subject: | Re: [RFC PATCH 12/34] target: Uninline cpu_mmu_index() |
| Date: | Wed, 24 Jan 2024 09:40:57 +1000 |
| User-agent: | Mozilla Thunderbird |
On 1/20/24 00:40, Anton Johansson wrote:
--- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -1233,19 +1233,7 @@ uint32_t cpu_rddsp(uint32_t mask_num, CPUMIPSState *env); */ #define MMU_USER_IDX 2-static inline int hflags_mmu_index(uint32_t hflags)-{ - if (hflags & MIPS_HFLAG_ERL) { - return 3; /* ERL */ - } else { - return hflags & MIPS_HFLAG_KSU; - } -}
Unrelated. All you need to move is...
-
-static inline int cpu_mmu_index(CPUMIPSState *env, bool ifetch)
-{
- return hflags_mmu_index(env->hflags);
-}
... this. Otherwise, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
| [Prev in Thread] | Current Thread | [Next in Thread] |