target/arm: Split out aarch32_cpsr_valid_mask
commit4f9584ed4bba8a57a3cb2fa48a682725005d530a
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 8 Feb 2020 12:58:01 +0000 (8 12:58 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Feb 2020 14:14:54 +0000 (13 14:14 +0000)
tree3f726e63b54c96e7de87f76732b3f2165a2a6298
parentd8564ee4e5bce87ec1fdf23656df9367eb1bc571
target/arm: Split out aarch32_cpsr_valid_mask

Split this helper out of msr_mask in translate.c.  At the same time,
transform the negative reductive logic to positive accumulative logic.
It will be usable along the exception paths.

While touching msr_mask, fix up formatting.

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