From d877985eeafdee6c7f06c8259d6c69763cd2ae80 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Mon, 5 Mar 2018 13:11:06 -0500 Subject: [PATCH] target/arm: Add missing M profile case to regime_is_user() 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. Backports commit 871bec7c44a453d9cab972ce1b5d12e1af0545ab from qemu --- qemu/target/arm/helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu/target/arm/helper.c b/qemu/target/arm/helper.c index f96e3bf4..2afa9beb 100644 --- a/qemu/target/arm/helper.c +++ b/qemu/target/arm/helper.c @@ -7206,6 +7206,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;