qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: malc <av1474@comtv.ru>
To: Paul Brook <paul@codesourcery.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] TCG for PowerPC host
Date: Thu, 15 May 2008 19:39:20 +0400 (MSD)	[thread overview]
Message-ID: <Pine.LNX.4.64.0805151927460.8790@linmac.oyster.ru> (raw)
In-Reply-To: <200805112119.52839.paul@codesourcery.com>

On Sun, 11 May 2008, Paul Brook wrote:

>> Fabrice mentioned that Sparc target should be used to test TCG
>> fully, should sparc*-linux-user (+ linux-user-test) be enough or
>> full system emulation is required?
>
> You should definitely full system emulation. It exercises exceptions a lot
> more (most userspace applications never fault).

While not beging sure what exceptions have to do with TCG i attempted it,
alas it seems at this stage that his is an exercise in futility.

  a. Approach taken by common TCG code when dealing with calling helper
     code is X86[_64] specific. Passing/returning long long quantities
     in SVR4PPC ABI doesn't map to this. I added a few temporary hacks,
     but at the end of the day they are just hacks.

  b. Even the last pre TCG snapshot of QEMU doesn't quite work with
     SPARC test iamge[1]. It makes a lot of progress (much more than
     specifically hacked TCG) but eventually the kernel crashes.

Also enabling CPU state logging (for both pre and TCG builds) yields
interesting  behaviour, namely - after a few guest instructions the
floating point part of the state is printed weirdly; more often than
not the values are incredibly huge, other times they are nans, in
reality env->fpr[0..N] are all bit zeroes. Given all that i do not
think that testing with sparc fullsystem emulation would get anyone
anywhere.

On the brighter side after fixing some issues i can boot i386 Linux
test image[2] and some DSL.

[1] http://fabrice.bellard.free.fr/qemu/sparc-test-0.2.tar.gz
[2] http://fabrice.bellard.free.fr/qemu/linux-0.2.img.bz2

-- 
mailto:av1474@comtv.ru

      reply	other threads:[~2008-05-15 15:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-11 19:51 [Qemu-devel] TCG for PowerPC host malc
2008-05-11 20:19 ` Paul Brook
2008-05-15 15:39   ` malc [this message]

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=Pine.LNX.4.64.0805151927460.8790@linmac.oyster.ru \
    --to=av1474@comtv.ru \
    --cc=paul@codesourcery.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 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).