All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lyonel Vincent <lyonel.vincent@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [resend] i386 emulation on PowerPC host
Date: Sun, 9 Apr 2006 10:49:12 +0200	[thread overview]
Message-ID: <20060409104912.52cf2e8b.lyonel.vincent@gmail.com> (raw)

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.

                 reply	other threads:[~2006-04-09  8:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060409104912.52cf2e8b.lyonel.vincent@gmail.com \
    --to=lyonel.vincent@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.