mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target-arm: Use a 1:1 mapping between EL and MMU index
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> Message-id: 1400980132-25949-6-git-send-email-edgar.iglesias@gmail.com Message-id: 1400805738-11889-7-git-send-email-edgar.iglesias@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
6ce2faf43c
commit
f79fbf39e2
2 changed files with 5 additions and 9 deletions
|
@ -1080,12 +1080,12 @@ static inline CPUARMState *cpu_init(const char *cpu_model)
|
|||
#define cpu_list arm_cpu_list
|
||||
|
||||
/* MMU modes definitions */
|
||||
#define MMU_MODE0_SUFFIX _kernel
|
||||
#define MMU_MODE1_SUFFIX _user
|
||||
#define MMU_USER_IDX 1
|
||||
#define MMU_MODE0_SUFFIX _user
|
||||
#define MMU_MODE1_SUFFIX _kernel
|
||||
#define MMU_USER_IDX 0
|
||||
static inline int cpu_mmu_index (CPUARMState *env)
|
||||
{
|
||||
return arm_current_pl(env) ? 0 : 1;
|
||||
return arm_current_pl(env);
|
||||
}
|
||||
|
||||
#include "exec/cpu-all.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue