Commit f900b1e5 authored by Jean-Hugues Deschênes's avatar Jean-Hugues Deschênes Committed by Peter Maydell
Browse files

target/arm: Fix handling of cortex-m FTYPE flag in EXCRET



According to the PushStack() pseudocode in the armv7m RM,
bit 4 of the LR should be set to NOT(CONTROL.PFCA) when
an FPU is present. Current implementation is doing it for
armv8, but not for armv7. This patch makes the existing
logic applicable to both code paths.

Signed-off-by: default avatarJean-Hugues Deschenes <jean-hugues.deschenes@ossiaco.com>
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent 4ecc9842
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment