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
This commit is contained in:
Peter Maydell 2018-03-05 13:11:06 -05:00 committed by Lioncash
parent 999080382f
commit d877985eea
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -7206,6 +7206,7 @@ static inline bool regime_is_user(CPUARMState *env, ARMMMUIdx mmu_idx)
case ARMMMUIdx_S1SE0: case ARMMMUIdx_S1SE0:
case ARMMMUIdx_S1NSE0: case ARMMMUIdx_S1NSE0:
case ARMMMUIdx_MUser: case ARMMMUIdx_MUser:
case ARMMMUIdx_MSUser:
return true; return true;
default: default:
return false; return false;