target/arm: Update hflags in trans_CPS_v7m()
commit0ea9e6583b0778568ba4c6e749f2848291e4a9b8
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 3 Mar 2020 17:49:48 +0000 (3 17:49 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Mar 2020 16:01:37 +0000 (12 16:01 +0000)
tree6f7eb8457c167d6b64a9c7adc63487e272d37e8f
parent8c4985298fca616e91b88996c225a9efd04b7500
target/arm: Update hflags in trans_CPS_v7m()

For M-profile CPUs, the FAULTMASK value affects the CPU's MMU index
(it changes the NegPri bit). We update the hflags after calls
to the v7m_msr helper in trans_MSR_v7m() but forgot to do so
in trans_CPS_v7m().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200303174950.3298-3-peter.maydell@linaro.org
target/arm/translate.c