mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target-sh4: define FPSCR constants
Define FPSCR constants for all field and use them instead of hardcoded values. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
442599a340
commit
26ac1ea559
3 changed files with 37 additions and 9 deletions
|
@ -203,10 +203,10 @@ static void cpu_sh4_reset(CPUSH4State * env)
|
|||
env->fpscr = FPSCR_PR; /* value for userspace according to the kernel */
|
||||
set_float_rounding_mode(float_round_nearest_even, &env->fp_status); /* ?! */
|
||||
#else
|
||||
env->fpscr = 0x00040001; /* CPU reset value according to SH4 manual */
|
||||
env->fpscr = FPSCR_DN | FPSCR_RM_ZERO; /* 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);
|
||||
set_default_nan_mode(1, &env->fp_status);
|
||||
env->mmucr = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue