qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] TCG for PowerPC host


From: malc
Subject: Re: [Qemu-devel] TCG for PowerPC host
Date: Thu, 15 May 2008 19:39:20 +0400 (MSD)

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:address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]