On Tue, Apr 19, 2011 at 06:11:37PM +0100, Peter Maydell wrote:
> On 18 April 2011 22:00, Aurelien Jarno wrote:
> > +++ b/target-i386/op_helper.c
> > @@ -3440,9 +3440,10 @@ static void fpu_set_exception(int mask)
> >
> > static inline CPU86_LDouble helper_fdiv(CPU86_LDouble a, CPU86_LDouble b)
> >
On 18 April 2011 22:00, Aurelien Jarno wrote:
> +++ b/target-i386/op_helper.c
> @@ -3440,9 +3440,10 @@ static void fpu_set_exception(int mask)
>
> static inline CPU86_LDouble helper_fdiv(CPU86_LDouble a, CPU86_LDouble b)
> {
> - if (b == 0.0)
> + if (floatx_is_zero(b)) {
> fpu_set_
Signed-off-by: Aurelien Jarno
---
target-i386/exec.h |4
target-i386/op_helper.c |5 +++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/target-i386/exec.h b/target-i386/exec.h
index 211cc8c..b2af894 100644
--- a/target-i386/exec.h
+++ b/target-i386/exec.h
@@ -1