diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2011-01-14 20:39:18 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-01-14 20:39:18 +0100 |
commit | 26ac1ea5590c2710d050bfe2630c1546f109d28c (patch) | |
tree | ed99be4a6ca155c60d687575b6789e9b78f51293 /target-sh4/translate.c | |
parent | 442599a340ad04f2915c471430ae8a93cb42b261 (diff) | |
download | qemu-26ac1ea5590c2710d050bfe2630c1546f109d28c.zip qemu-26ac1ea5590c2710d050bfe2630c1546f109d28c.tar.gz qemu-26ac1ea5590c2710d050bfe2630c1546f109d28c.tar.bz2 |
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>
Diffstat (limited to 'target-sh4/translate.c')
-rw-r--r-- | target-sh4/translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 1858423..d4cd0a3 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -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; } |