qemu/target/mips
Peter Maydell 584b7aec81 fpu: Rename float_flag_input_denormal to float_flag_input_denormal_flushed
Our float_flag_input_denormal exception flag is set when the fpu code
flushes an input denormal to zero.  This is what many guest
architectures (eg classic Arm behaviour) require, but it is not the
only donarmal-related reason we might want to set an exception flag.
The x86 behaviour (which we do not currently model correctly) wants
to see an exception flag when a denormal input is *not* flushed to
zero and is actually used in an arithmetic operation. Arm's FEAT_AFP
also wants these semantics.

Rename float_flag_input_denormal to float_flag_input_denormal_flushed
to make it clearer when it is set and to allow us to add a new
float_flag_input_denormal_used next to it for the x86/FEAT_AFP
semantics.

Commit created with
 for f in `git grep -l float_flag_input_denormal`; do sed -i -e 's/float_flag_input_denormal/float_flag_input_denormal_flushed/' $f; done

and manual editing of softfloat-types.h and softfloat.c to clean
up the indentation afterwards and to fix a comment which wasn't
using the full name of the flag.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250124162836.2332150-20-peter.maydell@linaro.org
2025-01-28 18:40:19 +00:00
..
system include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
tcg fpu: Rename float_flag_input_denormal to float_flag_input_denormal_flushed 2025-01-28 18:40:19 +00:00
cpu-defs.c.inc target/mips: Introduce disas_mt_available() 2024-11-03 05:52:49 -03:00
cpu-param.h license: Update deprecated SPDX tag LGPL-2.0+ to LGPL-2.0-or-later 2024-09-20 10:11:59 +03:00
cpu-qom.h target: Move ArchCPUClass definition to 'cpu.h' 2023-11-07 13:08:48 +01:00
cpu.c target: Replace DEVICE(object_new) -> qdev_new() 2025-01-13 17:06:35 +01:00
cpu.h target/mips: Remove unused CPUMIPSState::current_fpu field 2024-11-03 05:52:49 -03:00
fpu.c target/mips: Optimize CPU/FPU regnames[] arrays 2021-05-02 16:49:34 +02:00
fpu_helper.h target/mips: Set default NaN pattern explicitly 2024-12-11 15:31:06 +00:00
gdbstub.c target/mips: Prefer fast cpu_env() over slower CPU QOM cast macro 2024-03-12 12:04:24 +01:00
helper.h include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
internal.h target/mips: Introduce mo_endian_env() helper 2024-10-15 12:13:59 -03:00
Kconfig target/mips: Restrict semihosting to TCG 2024-07-22 09:38:10 +01:00
kvm.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
kvm_mips.h kvm: Introduce kvm_arch_get_default_type hook 2023-08-22 17:31:02 +01:00
meson.build include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
mips-defs.h target/mips: Introduce disas_mt_available() 2024-11-03 05:52:49 -03:00
msa.c target/mips: Set default NaN pattern explicitly 2024-12-11 15:31:06 +00:00