summaryrefslogtreecommitdiff
path: root/fpu/softfloat.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-05-19 14:46:17 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-05-23 22:39:35 +0200
commite6afc87f804abee7d0479be5e8e31c56d885fafb (patch)
tree7583efb95a098017efe645d40a81941d1216f671 /fpu/softfloat.h
parent43fe9bdb0f64237187aeab809bb98e1b46807538 (diff)
downloadqemu-e6afc87f804abee7d0479be5e8e31c56d885fafb.tar.gz
softfloat: Add new flag for when denormal result is flushed to zero
Add a new float_flag_output_denormal which is set when the result of a floating point operation would be denormal but is flushed to zero because we are in flush_to_zero mode. This is necessary because some architectures signal this condition as an underflow and others signal it as an inexact result. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'fpu/softfloat.h')
-rw-r--r--fpu/softfloat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpu/softfloat.h b/fpu/softfloat.h
index 5eff0858f1..58c9b7b40c 100644
--- a/fpu/softfloat.h
+++ b/fpu/softfloat.h
@@ -193,7 +193,8 @@ enum {
float_flag_overflow = 8,
float_flag_underflow = 16,
float_flag_inexact = 32,
- float_flag_input_denormal = 64
+ float_flag_input_denormal = 64,
+ float_flag_output_denormal = 128
};
typedef struct float_status {