Commit b0b3de8988b9f95f168ef94f8e918402d331db63

Authored by bellard
1 parent 83f59879

fixed FPU rounding init


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3615 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
target-sh4/translate.c
@@ -133,10 +133,10 @@ void cpu_sh4_reset(CPUSH4State * env) @@ -133,10 +133,10 @@ void cpu_sh4_reset(CPUSH4State * env)
133 env->pc = 0xA0000000; 133 env->pc = 0xA0000000;
134 #if defined(CONFIG_USER_ONLY) 134 #if defined(CONFIG_USER_ONLY)
135 env->fpscr = FPSCR_PR; /* value for userspace according to the kernel */ 135 env->fpscr = FPSCR_PR; /* value for userspace according to the kernel */
136 - env->fp_status.float_rounding_mode = float_round_nearest_even; /* ?! */ 136 + set_float_rounding_mode(float_round_nearest_even, &env->fp_status); /* ?! */
137 #else 137 #else
138 env->fpscr = 0x00040001; /* CPU reset value according to SH4 manual */ 138 env->fpscr = 0x00040001; /* CPU reset value according to SH4 manual */
139 - env->fp_status.float_rounding_mode = float_round_to_zero; 139 + set_float_rounding_mode(float_round_to_zero, &env->fp_status);
140 #endif 140 #endif
141 env->mmucr = 0; 141 env->mmucr = 0;
142 } 142 }