Re: [RFC PATCH 12/34] target: Uninline cpu_mmu_index()

2024-01-27 Thread Richard Henderson
On 1/20/24 00:40, Anton Johansson wrote: Uninlines the target-defined cpu_mmu_index() function by moving its definition to target/*/cpu.c. This allows for compiling memory access functions in accel/tcg/cputlb.c without having to know target specifics. Signed-off-by: Anton Johansson --- Queued

Re: [RFC PATCH 12/34] target: Uninline cpu_mmu_index()

2024-01-23 Thread Richard Henderson
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) {

[RFC PATCH 12/34] target: Uninline cpu_mmu_index()

2024-01-19 Thread Anton Johansson via
Uninlines the target-defined cpu_mmu_index() function by moving its definition to target/*/cpu.c. This allows for compiling memory access functions in accel/tcg/cputlb.c without having to know target specifics. Signed-off-by: Anton Johansson --- include/exec/cpu-common.h | 10 ++ target