target-arm: A64: provide functions for accessing FPCR and FPSR
commitf903fa22f4d7f3a20c4d0f42e7585ed80a3ec051
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 17 Dec 2013 19:42:31 +0000 (17 19:42 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 17 Dec 2013 19:42:31 +0000 (17 19:42 +0000)
treeb543ccc34cb7c4587ee696dab37aae987e8c6be2
parent5ce4f35781028ce1aee3341e6002f925fdc7aaf3
target-arm: A64: provide functions for accessing FPCR and FPSR

The information which AArch32 holds in the FPSCR is split for
AArch64 into two logically distinct registers, FPSR and FPCR.
Since they are carefully arranged to use non-overlapping bits,
we leave the underlying state in the same place, and provide
accessor functions which just update the appropriate bits
via vfp_get_fpscr() and vfp_set_fpscr().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
target-arm/cpu.h