diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2025-02-21 19:09:55 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2025-02-25 15:32:58 +0000 |
commit | b9d3dc45532e696f5ee566edd227a4f46bad0f35 (patch) | |
tree | d36bc6e93361c98de9d8289bc144d0c1a59ecae8 /rust/qemu-api/src/memory.rs | |
parent | e34cfba5e8d7bd631398a09d658dee40b1aef085 (diff) | |
download | qemu-b9d3dc45532e696f5ee566edd227a4f46bad0f35.zip qemu-b9d3dc45532e696f5ee566edd227a4f46bad0f35.tar.gz qemu-b9d3dc45532e696f5ee566edd227a4f46bad0f35.tar.bz2 |
target/arm: Move softfloat specific FPCR/FPSR handling to tcg/
The softfloat (i.e. TCG) specific handling for the FPCR
and FPSR is abstracted behind five functions:
arm_set_default_fp_behaviours
arm_set_ah_fp_behaviours
vfp_get_fpsr_from_host
vfp_clear_float_status_exc_flags
vfp_set_fpsr_to_host
Currently we rely on the first two calling softfloat functions that
work even in a KVM-only compile because they're defined as inline in
the softfloat header file, and we provide stub versions of the last
three in arm/vfp_helper.c if CONFIG_TCG isn't defined.
Move the softfloat-specific versions of these functions to
tcg/vfp_helper.c, and provide the non-TCG stub versions in
tcg-stubs.c.
This lets us drop the softfloat header include and the last
set of CONFIG_TCG ifdefs from arm/vfp_helper.c.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250221190957.811948-4-peter.maydell@linaro.org
Diffstat (limited to 'rust/qemu-api/src/memory.rs')
0 files changed, 0 insertions, 0 deletions