Peter Maydell 1169d3aa5b target/arm: Handle SPSEL and current stack being out of sync in MSP/PSP reads
For v8M it is possible for the CONTROL.SPSEL bit value and the
current stack to be out of sync. This means we need to update
the checks used in reads and writes of the PSP and MSP special
registers to use v7m_using_psp() rather than directly checking
the SPSEL bit in the control register.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1512153879-5291-2-git-send-email-peter.maydell@linaro.org
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
2017-12-13 17:59:23 +00:00
..
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00
2017-10-27 08:04:51 +01:00
2017-11-16 14:42:54 +00:00
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00
2017-10-27 08:04:51 +01:00
2017-10-30 10:11:22 +00:00
2017-10-27 08:04:51 +01:00
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00
2017-10-30 10:11:22 +00:00