target/arm: Add M profile secure MMU index values to get_a32_user_mem_index()
Add the M profile secure MMU index values to the switch in get_a32_user_mem_index() so that LDRT/STRT work correctly rather than asserting at translate time. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 1507556919-24992-2-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
8602beb7fa
commit
b9f587d62c
@ -165,6 +165,10 @@ static inline int get_a32_user_mem_index(DisasContext *s)
|
|||||||
case ARMMMUIdx_MPriv:
|
case ARMMMUIdx_MPriv:
|
||||||
case ARMMMUIdx_MNegPri:
|
case ARMMMUIdx_MNegPri:
|
||||||
return arm_to_core_mmu_idx(ARMMMUIdx_MUser);
|
return arm_to_core_mmu_idx(ARMMMUIdx_MUser);
|
||||||
|
case ARMMMUIdx_MSUser:
|
||||||
|
case ARMMMUIdx_MSPriv:
|
||||||
|
case ARMMMUIdx_MSNegPri:
|
||||||
|
return arm_to_core_mmu_idx(ARMMMUIdx_MSUser);
|
||||||
case ARMMMUIdx_S2NS:
|
case ARMMMUIdx_S2NS:
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached();
|
g_assert_not_reached();
|
||||||
|
Loading…
Reference in New Issue
Block a user