diff options
author | Richard Henderson | 2019-12-10 19:49:16 +0100 |
---|---|---|
committer | Richard Henderson | 2020-01-16 02:13:10 +0100 |
commit | 330edfcc84a7b652ffc0e2856dcd363605cdd3b0 (patch) | |
tree | 7342058c276c1b2fa8177ddfce76bf392a0f139b /target/m68k/cpu.h | |
parent | target/xtensa: Remove MMU_MODE{0,1,2,3}_SUFFIX (diff) | |
download | qemu-330edfcc84a7b652ffc0e2856dcd363605cdd3b0.tar.gz qemu-330edfcc84a7b652ffc0e2856dcd363605cdd3b0.tar.xz qemu-330edfcc84a7b652ffc0e2856dcd363605cdd3b0.zip |
target/m68k: Use cpu_*_mmuidx_ra instead of MMU_MODE{0,1}_SUFFIX
The generated *_user functions are unused. The *_kernel functions
have a couple of users in op_helper.c; use *_mmuidx_ra instead,
with MMU_KERNEL_IDX.
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
v2: Use *_mmuidx_ra directly, without intermediate macros.
Diffstat (limited to 'target/m68k/cpu.h')
-rw-r--r-- | target/m68k/cpu.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/target/m68k/cpu.h b/target/m68k/cpu.h index 11c71fa962..3de8e06dfe 100644 --- a/target/m68k/cpu.h +++ b/target/m68k/cpu.h @@ -519,8 +519,6 @@ enum { #define cpu_list m68k_cpu_list /* MMU modes definitions */ -#define MMU_MODE0_SUFFIX _kernel -#define MMU_MODE1_SUFFIX _user #define MMU_KERNEL_IDX 0 #define MMU_USER_IDX 1 static inline int cpu_mmu_index (CPUM68KState *env, bool ifetch) |