target/arm: Factor out preserve-fp-state from full_vfp_access_check()
commit96dfae686628fc14ba4f993824322b93395e221b
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 19 Nov 2020 21:56:01 +0000 (19 21:56 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 10 Dec 2020 11:44:55 +0000 (10 11:44 +0000)
tree937dbb71d22a52e8dec1ca929dae83258ce02992
parent6a017acdf83e3bb6bd5e85289ca90b2ea3282b7e
target/arm: Factor out preserve-fp-state from full_vfp_access_check()

Factor out the code which handles M-profile lazy FP state preservation
from full_vfp_access_check(); accesses to the FPCXT_NS register are
a special case which need to do just this part (corresponding in the
pseudocode to the PreserveFPState() function), and not the full
set of actions matching the pseudocode ExecuteFPCheck() which
normal FP instructions need to do.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20201119215617.29887-13-peter.maydell@linaro.org
target/arm/translate-vfp.c.inc