diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2011-01-14 20:39:17 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-01-14 20:39:17 +0100 |
commit | 442599a340ad04f2915c471430ae8a93cb42b261 (patch) | |
tree | 9a0c278c863102b3819a3783b6cac51b353ba3ab /target-sh4 | |
parent | 102016020bb0f368958ae91d293e13c61b3923a1 (diff) | |
download | qemu-442599a340ad04f2915c471430ae8a93cb42b261.zip qemu-442599a340ad04f2915c471430ae8a93cb42b261.tar.gz qemu-442599a340ad04f2915c471430ae8a93cb42b261.tar.bz2 |
target-sh4: use default-NaN mode
SH4 FPU doesn't propagate NaN, and instead always regenerate new ones.
Enable the default-NaN mode by default.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-sh4')
-rw-r--r-- | target-sh4/translate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 37915d5..1858423 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -206,6 +206,7 @@ static void cpu_sh4_reset(CPUSH4State * env) env->fpscr = 0x00040001; /* CPU reset value according to SH4 manual */ set_float_rounding_mode(float_round_to_zero, &env->fp_status); #endif + set_default_nan_mode(1, &env->vfp.fp_status); env->mmucr = 0; } |