aboutsummaryrefslogtreecommitdiff
path: root/include/gdbstub/commands.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2024-12-11 15:31:01 +0000
committerPeter Maydell <peter.maydell@linaro.org>2024-12-11 15:31:01 +0000
commita0c4297738880393a1a74d5db551ee7a832e7a91 (patch)
tree9d4534374febdfd300e502310809ee277d35697e /include/gdbstub/commands.h
parent3d024e359feff6237ceed5326e08850a70682b3a (diff)
downloadqemu-a0c4297738880393a1a74d5db551ee7a832e7a91.zip
qemu-a0c4297738880393a1a74d5db551ee7a832e7a91.tar.gz
qemu-a0c4297738880393a1a74d5db551ee7a832e7a91.tar.bz2
target/loongarch: Use normal float_status in fclass_s and fclass_d helpers
In target/loongarch's helper_fclass_s() and helper_fclass_d() we pass a zero-initialized float_status struct to float32_is_quiet_nan() and float64_is_quiet_nan(), with the cryptic comment "for snan_bit_is_one". This pattern appears to have been copied from target/riscv, where it is used because the functions there do not have ready access to the CPU state struct. The comment presumably refers to the fact that the main reason the is_quiet_nan() functions want the float_state is because they want to know about the snan_bit_is_one config. In the loongarch helpers, though, we have the CPU state struct to hand. Use the usual env->fp_status here. This avoids our needing to track that we need to update the initializer of the local float_status structs when the core softfloat code adds new options for targets to configure their behaviour. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241202131347.498124-30-peter.maydell@linaro.org
Diffstat (limited to 'include/gdbstub/commands.h')
0 files changed, 0 insertions, 0 deletions