]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
target/arm: Add M profile secure MMU index values to get_a32_user_mem_index()
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 9 Oct 2017 13:48:31 +0000 (14:48 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Oct 2017 12:23:14 +0000 (13:23 +0100)
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

target/arm/translate.c

index fdc46cc52519127d120686593870022b179cd7ef..61fd0ef6b5fe9b82ed3954737de1df56419cc597 100644 (file)
@@ -165,6 +165,10 @@ static inline int get_a32_user_mem_index(DisasContext *s)
     case ARMMMUIdx_MPriv:
     case ARMMMUIdx_MNegPri:
         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:
     default:
         g_assert_not_reached();