fixed FPU rounding init
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3615 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
83f5987956
commit
b0b3de8988
@ -133,10 +133,10 @@ void cpu_sh4_reset(CPUSH4State * env)
|
|||||||
env->pc = 0xA0000000;
|
env->pc = 0xA0000000;
|
||||||
#if defined(CONFIG_USER_ONLY)
|
#if defined(CONFIG_USER_ONLY)
|
||||||
env->fpscr = FPSCR_PR; /* value for userspace according to the kernel */
|
env->fpscr = FPSCR_PR; /* value for userspace according to the kernel */
|
||||||
env->fp_status.float_rounding_mode = float_round_nearest_even; /* ?! */
|
set_float_rounding_mode(float_round_nearest_even, &env->fp_status); /* ?! */
|
||||||
#else
|
#else
|
||||||
env->fpscr = 0x00040001; /* CPU reset value according to SH4 manual */
|
env->fpscr = 0x00040001; /* CPU reset value according to SH4 manual */
|
||||||
env->fp_status.float_rounding_mode = float_round_to_zero;
|
set_float_rounding_mode(float_round_to_zero, &env->fp_status);
|
||||||
#endif
|
#endif
|
||||||
env->mmucr = 0;
|
env->mmucr = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user