Commit 442599a3 authored by Aurelien Jarno's avatar Aurelien Jarno
Browse files

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: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 10201602
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment