]> xenbits.xensource.com Git - qemu-xen.git/commit
target/arm: Handle FPU check for FPCXT_NS insns via vfp_access_check_m()
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 18 Jun 2021 14:10:19 +0000 (15:10 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Jun 2021 15:49:38 +0000 (16:49 +0100)
commit88137f787f374ac4117877bcc8c8af97326a10bd
tree162e9736d9d0249c4033d0b7037a653a47dd2dd9
parente8cedaf779c0c2b13e0cc1ca580beaf5a6562a73
target/arm: Handle FPU check for FPCXT_NS insns via vfp_access_check_m()

Instead of open-coding the "take NOCP exception if FPU disabled,
otherwise call gen_preserve_fp_state()" code in the accessors for
FPCXT_NS, add an argument to vfp_access_check_m() which tells it to
skip the gen_update_fp_context() call, so we can use it for the
FPCXT_NS case.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210618141019.10671-8-peter.maydell@linaro.org
target/arm/translate-a32.h
target/arm/translate-m-nocp.c
target/arm/translate-vfp.c