summaryrefslogtreecommitdiff
path: root/target-sh4
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-11 19:49:51 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-11 19:49:51 +0000
commitb0b3de8988b9f95f168ef94f8e918402d331db63 (patch)
treed33869eb3c35ab9d624bdf515cdd974f650e19ad /target-sh4
parent83f59879561bdc5fa0ff61e536f9c0c415be5e7f (diff)
downloadqemu-b0b3de8988b9f95f168ef94f8e918402d331db63.tar.gz
qemu-b0b3de8988b9f95f168ef94f8e918402d331db63.tar.bz2
qemu-b0b3de8988b9f95f168ef94f8e918402d331db63.zip
fixed FPU rounding init
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3615 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4')
-rw-r--r--target-sh4/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index 8d5e99e97a..70b4837a90 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -133,10 +133,10 @@ void cpu_sh4_reset(CPUSH4State * env)
env->pc = 0xA0000000;
#if defined(CONFIG_USER_ONLY)
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
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
env->mmucr = 0;
}