mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
include/exec: Implement cpu_mmu_index generically
For user-only mode, use MMU_USER_IDX. For system mode, use CPUClass.mmu_index. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
68283ff4b4
commit
a120d32097
31 changed files with 34 additions and 133 deletions
|
@ -184,11 +184,6 @@ static inline void set_avr_feature(CPUAVRState *env, int feature)
|
|||
env->features |= (1U << feature);
|
||||
}
|
||||
|
||||
static inline int cpu_mmu_index(CPUAVRState *env, bool ifetch)
|
||||
{
|
||||
return ifetch ? MMU_CODE_IDX : MMU_DATA_IDX;
|
||||
}
|
||||
|
||||
void avr_cpu_tcg_init(void);
|
||||
|
||||
int cpu_avr_exec(CPUState *cpu);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue