aboutsummaryrefslogtreecommitdiffstats
path: root/target-sparc
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-02-10 22:58:02 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-02-10 22:58:02 +0000
commitbd59780c46430dbb31e4232aa5191f0739ed70a7 (patch)
treef0b601feff7eda01c524f101e19640c9f22d9258 /target-sparc
parented8276ac7e7e4d18cbb37ee3069f3fc2f08ca1c7 (diff)
Fix floating point to integer conversion, by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2413 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/op.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target-sparc/op.c b/target-sparc/op.c
index 1ec15d28b..fd30e90e1 100644
--- a/target-sparc/op.c
+++ b/target-sparc/op.c
@@ -1472,23 +1472,23 @@ void OPPROTO op_fstod(void)
/* Float to integer conversion. */
void OPPROTO op_fstoi(void)
{
- *((int32_t *)&FT0) = float32_to_int32(FT1, &env->fp_status);
+ *((int32_t *)&FT0) = float32_to_int32_round_to_zero(FT1, &env->fp_status);
}
void OPPROTO op_fdtoi(void)
{
- *((int32_t *)&FT0) = float64_to_int32(DT1, &env->fp_status);
+ *((int32_t *)&FT0) = float64_to_int32_round_to_zero(DT1, &env->fp_status);
}
#ifdef TARGET_SPARC64
void OPPROTO op_fstox(void)
{
- *((int64_t *)&DT0) = float32_to_int64(FT1, &env->fp_status);
+ *((int64_t *)&DT0) = float32_to_int64_round_to_zero(FT1, &env->fp_status);
}
void OPPROTO op_fdtox(void)
{
- *((int64_t *)&DT0) = float64_to_int64(DT1, &env->fp_status);
+ *((int64_t *)&DT0) = float64_to_int64_round_to_zero(DT1, &env->fp_status);
}
void OPPROTO op_fmovs_cc(void)