]> Git Repo - qemu.git/commitdiff
Fix MIPS FP underflow handling, spotted by Daniel Jacobowitz.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 28 Sep 2007 19:30:36 +0000 (19:30 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 28 Sep 2007 19:30:36 +0000 (19:30 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3255 c046a42c-6fe2-441c-8c8c-71466251a162

target-mips/op_helper.c

index 6b007a6be04b39c5f5cc8d89f5236d265a3c9c59..00a6c44489379a8e47f901ea3d189e407ab29290 100644 (file)
@@ -1032,10 +1032,6 @@ FLOAT_OP(name, d)         \
     update_fcr31();                                                \
     if (GET_FP_CAUSE(env->fpu->fcr31) & FP_INVALID)                \
         FDT2 = 0x7ff7ffffffffffffULL;                              \
-    else if (GET_FP_CAUSE(env->fpu->fcr31) & FP_UNDERFLOW) {       \
-        if ((env->fpu->fcr31 & 0x3) == 0)                          \
-            FDT2 &= FLOAT_SIGN64;                                  \
-    }                     \
 }                         \
 FLOAT_OP(name, s)         \
 {                         \
@@ -1044,10 +1040,6 @@ FLOAT_OP(name, s)         \
     update_fcr31();                                                \
     if (GET_FP_CAUSE(env->fpu->fcr31) & FP_INVALID)                \
         FST2 = 0x7fbfffff;                                         \
-    else if (GET_FP_CAUSE(env->fpu->fcr31) & FP_UNDERFLOW) {       \
-        if ((env->fpu->fcr31 & 0x3) == 0)                          \
-            FST2 &= FLOAT_SIGN32;                                  \
-    }                     \
 }                         \
 FLOAT_OP(name, ps)        \
 {                         \
@@ -1058,11 +1050,6 @@ FLOAT_OP(name, ps)        \
     if (GET_FP_CAUSE(env->fpu->fcr31) & FP_INVALID) {              \
         FST2 = 0x7fbfffff;                                         \
         FSTH2 = 0x7fbfffff;                                        \
-    } else if (GET_FP_CAUSE(env->fpu->fcr31) & FP_UNDERFLOW) {     \
-        if ((env->fpu->fcr31 & 0x3) == 0) {                        \
-            FST2 &= FLOAT_SIGN32;                                  \
-            FSTH2 &= FLOAT_SIGN32;                                 \
-        }                 \
     }                     \
 }
 FLOAT_BINOP(add)
This page took 0.028234 seconds and 4 git commands to generate.