]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/arm: Add missing M profile case to regime_is_user()
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 13 Dec 2017 17:59:23 +0000 (17:59 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 13 Dec 2017 17:59:23 +0000 (17:59 +0000)
When we added the ARMMMUIdx_MSUser MMU index we forgot to
add it to the case statement in regime_is_user(), so we
weren't treating it as unprivileged when doing MPU lookups.
Correct the omission.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1512153879-5291-4-git-send-email-peter.maydell@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
target/arm/helper.c

index f21c14260235ec3209107ba8012ad212c311e991..c4c8d5a7d2b378c935a4196e36bfb0b4ce36c042 100644 (file)
@@ -8016,6 +8016,7 @@ static inline bool regime_is_user(CPUARMState *env, ARMMMUIdx mmu_idx)
     case ARMMMUIdx_S1SE0:
     case ARMMMUIdx_S1NSE0:
     case ARMMMUIdx_MUser:
+    case ARMMMUIdx_MSUser:
         return true;
     default:
         return false;