diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2002-06-12 00:46:11 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2002-06-12 00:46:11 +0000 |
commit | 7d7d930f7a67e7ec4824e083e2324df5f5d1a6fb (patch) | |
tree | fdf23fb662e6635cebb874ef1f54517bc785f749 /sim/common/sim-fpu.c | |
parent | 073bbd368e811eabe6390b54af17a2b1fca75bd8 (diff) | |
download | gdb-7d7d930f7a67e7ec4824e083e2324df5f5d1a6fb.zip gdb-7d7d930f7a67e7ec4824e083e2324df5f5d1a6fb.tar.gz gdb-7d7d930f7a67e7ec4824e083e2324df5f5d1a6fb.tar.bz2 |
002-06-09 Aldy Hernandez <aldyh@redhat.com>
* sim-fpu.c (unpack_fpu): Initialize exponent for
sim_fpu_class_zero.
(i2fpu): Same.
(sim_fpu_sqrt): Same.
Diffstat (limited to 'sim/common/sim-fpu.c')
-rw-r--r-- | sim/common/sim-fpu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/sim-fpu.c b/sim/common/sim-fpu.c index 76391751..28d61a5 100644 --- a/sim/common/sim-fpu.c +++ b/sim/common/sim-fpu.c @@ -330,6 +330,7 @@ unpack_fpu (sim_fpu *dst, unsigned64 packed, int is_double) /* tastes like zero */ dst->class = sim_fpu_class_zero; dst->sign = sign; + dst->normal_exp = 0; } else { @@ -520,6 +521,7 @@ i2fpu (sim_fpu *f, signed64 i, int is_64bit) { f->class = sim_fpu_class_zero; f->sign = 0; + f->normal_exp = 0; } else { @@ -648,6 +650,7 @@ u2fpu (sim_fpu *f, unsigned64 u, int is_64bit) { f->class = sim_fpu_class_zero; f->sign = 0; + f->normal_exp = 0; } else { @@ -1799,6 +1802,7 @@ sim_fpu_sqrt (sim_fpu *f, { f->class = sim_fpu_class_zero; f->sign = r->sign; + f->normal_exp = 0; return 0; } if (sim_fpu_is_infinity (r)) |