qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1477683] [NEW] FPU in qemu-system-i386 works incorrectly
@ 2015-07-23 17:01 Daniel Milewski
  2015-07-23 18:40 ` [Qemu-devel] [Bug 1477683] " Daniel Milewski
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Daniel Milewski @ 2015-07-23 17:01 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

FPU bug in qemu-system-i386 makes software which use floating point
numbers work incorrectly. For instance, the one included in attachment
prints out 0 instead of 2147483648. The same code works ok in qemu-
system-x86_64.

I have this issue in QEMU 2.3.0 on two different x86 guests (Parabola
GNU/Linux-libre and libreCMC).

** Affects: qemu
     Importance: Undecided
         Status: New

** Attachment added: "main.c"
   https://bugs.launchpad.net/bugs/1477683/+attachment/4433189/+files/main.c

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1477683

Title:
  FPU in qemu-system-i386 works incorrectly

Status in QEMU:
  New

Bug description:
  FPU bug in qemu-system-i386 makes software which use floating point
  numbers work incorrectly. For instance, the one included in attachment
  prints out 0 instead of 2147483648. The same code works ok in qemu-
  system-x86_64.

  I have this issue in QEMU 2.3.0 on two different x86 guests (Parabola
  GNU/Linux-libre and libreCMC).

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1477683/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1477683] Re: FPU in qemu-system-i386 works incorrectly
  2015-07-23 17:01 [Qemu-devel] [Bug 1477683] [NEW] FPU in qemu-system-i386 works incorrectly Daniel Milewski
@ 2015-07-23 18:40 ` Daniel Milewski
  2015-07-23 19:17 ` Sandmann
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Daniel Milewski @ 2015-07-23 18:40 UTC (permalink / raw)
  To: qemu-devel

** Description changed:

  FPU bug in qemu-system-i386 makes software which use floating point
  numbers work incorrectly. For instance, the one included in attachment
  prints out 0 instead of 2147483648. The same code works ok in qemu-
  system-x86_64.
  
- I have this issue in QEMU 2.3.0 on two different x86 guests (Parabola
- GNU/Linux-libre and libreCMC).
+ I have this issue in QEMU 2.3.0 on two different GNU/Linux guests
+ (Parabola GNU/Linux-libre and libreCMC).

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1477683

Title:
  FPU in qemu-system-i386 works incorrectly

Status in QEMU:
  New

Bug description:
  FPU bug in qemu-system-i386 makes software which use floating point
  numbers work incorrectly. For instance, the one included in attachment
  prints out 0 instead of 2147483648. The same code works ok in qemu-
  system-x86_64.

  I have this issue in QEMU 2.3.0 on two different GNU/Linux guests
  (Parabola GNU/Linux-libre and libreCMC).

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1477683/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1477683] Re: FPU in qemu-system-i386 works incorrectly
  2015-07-23 17:01 [Qemu-devel] [Bug 1477683] [NEW] FPU in qemu-system-i386 works incorrectly Daniel Milewski
  2015-07-23 18:40 ` [Qemu-devel] [Bug 1477683] " Daniel Milewski
@ 2015-07-23 19:17 ` Sandmann
  2015-07-24  9:24 ` Daniel Milewski
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Sandmann @ 2015-07-23 19:17 UTC (permalink / raw)
  To: qemu-devel

I think, that I have the same issue. After some git bisect, I found out
that commit ea32aaf1a72af102b855317b47a22e75ac2965a9 has introduced the
problem. Attached is a patch that fixes the issue for me. Maybe you can
try this out, too.

** Patch added: "0001-target-i386-Fix-conversion-infinity-from-float80-to-.patch"
   https://bugs.launchpad.net/qemu/+bug/1477683/+attachment/4433257/+files/0001-target-i386-Fix-conversion-infinity-from-float80-to-.patch

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1477683

Title:
  FPU in qemu-system-i386 works incorrectly

Status in QEMU:
  New

Bug description:
  FPU bug in qemu-system-i386 makes software which use floating point
  numbers work incorrectly. For instance, the one included in attachment
  prints out 0 instead of 2147483648. The same code works ok in qemu-
  system-x86_64.

  I have this issue in QEMU 2.3.0 on two different GNU/Linux guests
  (Parabola GNU/Linux-libre and libreCMC).

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1477683/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1477683] Re: FPU in qemu-system-i386 works incorrectly
  2015-07-23 17:01 [Qemu-devel] [Bug 1477683] [NEW] FPU in qemu-system-i386 works incorrectly Daniel Milewski
  2015-07-23 18:40 ` [Qemu-devel] [Bug 1477683] " Daniel Milewski
  2015-07-23 19:17 ` Sandmann
@ 2015-07-24  9:24 ` Daniel Milewski
  2015-07-24  9:46 ` Daniel Milewski
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Daniel Milewski @ 2015-07-24  9:24 UTC (permalink / raw)
  To: qemu-devel

** Description changed:

  FPU bug in qemu-system-i386 makes software which use floating point
  numbers work incorrectly. For instance, the one included in attachment
  prints out 0 instead of 2147483648. The same code works ok in qemu-
  system-x86_64.
  
  I have this issue in QEMU 2.3.0 on two different GNU/Linux guests
- (Parabola GNU/Linux-libre and libreCMC).
+ (Parabola GNU/Linux-libre and libreCMC.)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1477683

Title:
  FPU in qemu-system-i386 works incorrectly

Status in QEMU:
  New

Bug description:
  FPU bug in qemu-system-i386 makes software which use floating point
  numbers work incorrectly. For instance, the one included in attachment
  prints out 0 instead of 2147483648. The same code works ok in qemu-
  system-x86_64.

  I have this issue in QEMU 2.3.0 on two different GNU/Linux guests
  (Parabola GNU/Linux-libre and libreCMC.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1477683/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1477683] Re: FPU in qemu-system-i386 works incorrectly
  2015-07-23 17:01 [Qemu-devel] [Bug 1477683] [NEW] FPU in qemu-system-i386 works incorrectly Daniel Milewski
                   ` (2 preceding siblings ...)
  2015-07-24  9:24 ` Daniel Milewski
@ 2015-07-24  9:46 ` Daniel Milewski
  2015-07-24 13:40 ` Aurelien Jarno
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Daniel Milewski @ 2015-07-24  9:46 UTC (permalink / raw)
  To: qemu-devel

Thanks! That patch solves the issue for me. May I ask maintainer to
commit the fix?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1477683

Title:
  FPU in qemu-system-i386 works incorrectly

Status in QEMU:
  New

Bug description:
  FPU bug in qemu-system-i386 makes software which use floating point
  numbers work incorrectly. For instance, the one included in attachment
  prints out 0 instead of 2147483648. The same code works ok in qemu-
  system-x86_64.

  I have this issue in QEMU 2.3.0 on two different GNU/Linux guests
  (Parabola GNU/Linux-libre and libreCMC.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1477683/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1477683] Re: FPU in qemu-system-i386 works incorrectly
  2015-07-23 17:01 [Qemu-devel] [Bug 1477683] [NEW] FPU in qemu-system-i386 works incorrectly Daniel Milewski
                   ` (3 preceding siblings ...)
  2015-07-24  9:46 ` Daniel Milewski
@ 2015-07-24 13:40 ` Aurelien Jarno
  2015-07-24 13:45 ` Sandmann
  2016-06-27 19:11 ` T. Huth
  6 siblings, 0 replies; 8+ messages in thread
From: Aurelien Jarno @ 2015-07-24 13:40 UTC (permalink / raw)
  To: qemu-devel

Someone has posted a similar fix a few weeks ago, and it has just been
merged.

** Changed in: qemu
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1477683

Title:
  FPU in qemu-system-i386 works incorrectly

Status in QEMU:
  Fix Committed

Bug description:
  FPU bug in qemu-system-i386 makes software which use floating point
  numbers work incorrectly. For instance, the one included in attachment
  prints out 0 instead of 2147483648. The same code works ok in qemu-
  system-x86_64.

  I have this issue in QEMU 2.3.0 on two different GNU/Linux guests
  (Parabola GNU/Linux-libre and libreCMC.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1477683/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1477683] Re: FPU in qemu-system-i386 works incorrectly
  2015-07-23 17:01 [Qemu-devel] [Bug 1477683] [NEW] FPU in qemu-system-i386 works incorrectly Daniel Milewski
                   ` (4 preceding siblings ...)
  2015-07-24 13:40 ` Aurelien Jarno
@ 2015-07-24 13:45 ` Sandmann
  2016-06-27 19:11 ` T. Huth
  6 siblings, 0 replies; 8+ messages in thread
From: Sandmann @ 2015-07-24 13:45 UTC (permalink / raw)
  To: qemu-devel

Great, thanks for the information. I was just about to send the patch to
the mailing list, but this seems to unnecessary now.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1477683

Title:
  FPU in qemu-system-i386 works incorrectly

Status in QEMU:
  Fix Committed

Bug description:
  FPU bug in qemu-system-i386 makes software which use floating point
  numbers work incorrectly. For instance, the one included in attachment
  prints out 0 instead of 2147483648. The same code works ok in qemu-
  system-x86_64.

  I have this issue in QEMU 2.3.0 on two different GNU/Linux guests
  (Parabola GNU/Linux-libre and libreCMC.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1477683/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [Bug 1477683] Re: FPU in qemu-system-i386 works incorrectly
  2015-07-23 17:01 [Qemu-devel] [Bug 1477683] [NEW] FPU in qemu-system-i386 works incorrectly Daniel Milewski
                   ` (5 preceding siblings ...)
  2015-07-24 13:45 ` Sandmann
@ 2016-06-27 19:11 ` T. Huth
  6 siblings, 0 replies; 8+ messages in thread
From: T. Huth @ 2016-06-27 19:11 UTC (permalink / raw)
  To: qemu-devel

If I've got that right, the fix had been included here:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=178846bdd93994c1acaf
... so closing this ticket now.

** Changed in: qemu
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1477683

Title:
  FPU in qemu-system-i386 works incorrectly

Status in QEMU:
  Fix Released

Bug description:
  FPU bug in qemu-system-i386 makes software which use floating point
  numbers work incorrectly. For instance, the one included in attachment
  prints out 0 instead of 2147483648. The same code works ok in qemu-
  system-x86_64.

  I have this issue in QEMU 2.3.0 on two different GNU/Linux guests
  (Parabola GNU/Linux-libre and libreCMC.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1477683/+subscriptions

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-06-27 19:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23 17:01 [Qemu-devel] [Bug 1477683] [NEW] FPU in qemu-system-i386 works incorrectly Daniel Milewski
2015-07-23 18:40 ` [Qemu-devel] [Bug 1477683] " Daniel Milewski
2015-07-23 19:17 ` Sandmann
2015-07-24  9:24 ` Daniel Milewski
2015-07-24  9:46 ` Daniel Milewski
2015-07-24 13:40 ` Aurelien Jarno
2015-07-24 13:45 ` Sandmann
2016-06-27 19:11 ` T. Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).