mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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>
This commit is contained in:
parent
26ac1ea559
commit
a0d4ac333a
2 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue