diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2024-01-28 16:00:39 +1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2024-02-03 16:46:10 +1000 |
| commit | 6ebf33c5dccf71ca7bbb0d3d799af82f79d6445b (patch) | |
| tree | b41b67a187cdd6965ff1c4fff2907014e2997ff2 /target/mips/cpu.h | |
| parent | 4e999bf4197ae3dc58b7092260f98146920a7469 (diff) | |
| download | focaccia-qemu-6ebf33c5dccf71ca7bbb0d3d799af82f79d6445b.tar.gz focaccia-qemu-6ebf33c5dccf71ca7bbb0d3d799af82f79d6445b.zip | |
target/mips: Split out mips_env_mmu_index
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/mips/cpu.h')
| -rw-r--r-- | target/mips/cpu.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 3ba8dccd2d..4c15e76781 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -1255,11 +1255,16 @@ static inline int hflags_mmu_index(uint32_t hflags) } } -static inline int cpu_mmu_index(CPUMIPSState *env, bool ifetch) +static inline int mips_env_mmu_index(CPUMIPSState *env) { return hflags_mmu_index(env->hflags); } +static inline int cpu_mmu_index(CPUMIPSState *env, bool ifetch) +{ + return mips_env_mmu_index(env); +} + #include "exec/cpu-all.h" /* Exceptions */ |