target/arm: Use aarch32_cpsr_valid_mask in helper_exception_return
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 8 Feb 2020 12:58:04 +0000 (12:58 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Feb 2020 14:14:54 +0000 (14:14 +0000)
commitd203cabd1bd12f31c9df0b5737421ba67b96857b
tree74f23a4f2edb0370b905283778a680949966b6d6
parent437864216d63f052f3cd06ec8861d0e432496424
target/arm: Use aarch32_cpsr_valid_mask in helper_exception_return

Using ~0 as the mask on the aarch64->aarch32 exception return
was not even as correct as the CPSR_ERET_MASK that we had used
on the aarch32->aarch32 exception return.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200208125816.14954-9-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper-a64.c