mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13: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
|
@ -54,11 +54,7 @@ static inline int arm_dc_feature(DisasContext *dc, int feature)
|
|||
|
||||
static inline int get_mem_index(DisasContext *s)
|
||||
{
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
return 1;
|
||||
#else
|
||||
return s->user;
|
||||
#endif
|
||||
return s->current_pl;
|
||||
}
|
||||
|
||||
/* target-specific extra values for is_jmp */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue