aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2025-01-24 16:27:41 +0000
committerPeter Maydell <peter.maydell@linaro.org>2025-01-28 18:40:19 +0000
commit1c49280f023e87e1c93c136e2b1b435e26f7c332 (patch)
tree35dda85218302f8a38d7754d5d76585a84bf9d03
parent7af64d103d2d81e4b1a9a7c92a803abb2bcd6d91 (diff)
downloadqemu-1c49280f023e87e1c93c136e2b1b435e26f7c332.zip
qemu-1c49280f023e87e1c93c136e2b1b435e26f7c332.tar.gz
qemu-1c49280f023e87e1c93c136e2b1b435e26f7c332.tar.bz2
fpu: Fix a comment in softfloat-types.h
In softfloat-types.h a comment documents that if the float_status field flush_to_zero is set then we flush denormalised results to 0 and set the inexact flag. This isn't correct: the status flag that we set when flush_to_zero causes us to flush an output to zero is float_flag_output_denormal_flushed. Correct the comment. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20250124162836.2332150-22-peter.maydell@linaro.org
-rw-r--r--include/fpu/softfloat-types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fpu/softfloat-types.h b/include/fpu/softfloat-types.h
index c35fdaa..616c290 100644
--- a/include/fpu/softfloat-types.h
+++ b/include/fpu/softfloat-types.h
@@ -302,7 +302,7 @@ typedef struct float_status {
Float3NaNPropRule float_3nan_prop_rule;
FloatInfZeroNaNRule float_infzeronan_rule;
bool tininess_before_rounding;
- /* should denormalised results go to zero and set the inexact flag? */
+ /* should denormalised results go to zero and set output_denormal_flushed? */
bool flush_to_zero;
/* should denormalised inputs go to zero and set input_denormal_flushed? */
bool flush_inputs_to_zero;