aboutsummaryrefslogtreecommitdiff
path: root/target-sh4/op_helper.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2011-01-14 20:39:18 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-01-14 20:39:18 +0100
commita0d4ac333a8e59152c48ce659dc831391fff6df3 (patch)
tree5fb8809b8de58d13d445e7191416cc1c31d76d2c /target-sh4/op_helper.c
parent26ac1ea5590c2710d050bfe2630c1546f109d28c (diff)
downloadqemu-a0d4ac333a8e59152c48ce659dc831391fff6df3.zip
qemu-a0d4ac333a8e59152c48ce659dc831391fff6df3.tar.gz
qemu-a0d4ac333a8e59152c48ce659dc831391fff6df3.tar.bz2
target-sh4: implement flush-to-zero
When the FPSCR.DN bit is set, the SH4 FPU treat denormalized numbers as zero. Enable the corresponding softfloat option when this bit is set. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-sh4/op_helper.c')
-rw-r--r--target-sh4/op_helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-sh4/op_helper.c b/target-sh4/op_helper.c
index d69b94b..9025a29 100644
--- a/target-sh4/op_helper.c
+++ b/target-sh4/op_helper.c
@@ -449,6 +449,7 @@ void helper_ld_fpscr(uint32_t val)
} else {
set_float_rounding_mode(float_round_nearest_even, &env->fp_status);
}
+ set_flush_to_zero((val & FPSCR_DN) != 0, &env->fp_status);
}
uint32_t helper_fabs_FT(uint32_t t0)