qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [resend] i386 emulation on PowerPC host
@ 2006-04-09  8:49 Lyonel Vincent
  0 siblings, 0 replies; only message in thread
From: Lyonel Vincent @ 2006-04-09  8:49 UTC (permalink / raw)
  To: qemu-devel

Hi all,

Having noticed very wierd behaviour of some operations under an x86
Qemu guest running on a PowerPC (32 bits), I have compiled the
following test program under Linux/i386:

#include <stdio.h>
#include <math.h>

void main()
{
  float x = exp(1)*exp(1);
  float y = exp(2);

  printf("%f = %f\n", x, y);
}

When run under native i386 Linux, this program displays:
$ ./mathtest
7.389056 = 7.389056

as expected

but with a CVS snapshot (as of 2006-03-23) of Qemu, one gets:
$ ./mathtest
7.389056 = -inf

[that's the same binary running under Linux/i386 inside Qemu on a
PowerPC host]

I also have other strange symptoms like cp sometimes complaining about
memory exhaustion but I haven't been able to reproduce those yet...

Does anybody have an idea of what the problem could be and how I could
help to fix that?

cheers,
Lyonel.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-09  8:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-09  8:49 [Qemu-devel] [resend] i386 emulation on PowerPC host Lyonel Vincent

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).