qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Desnogues <laurent.desnogues@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Enabled building of x86_64 code on Mac OS X
Date: Tue, 27 Jan 2009 16:00:32 +0100	[thread overview]
Message-ID: <761ea48b0901270700g208c28b1r3c57f0f3c59d109c@mail.gmail.com> (raw)
In-Reply-To: <497ED233.7010504@suse.de>

On Tue, Jan 27, 2009 at 10:21 AM, Alexander Graf <agraf@suse.de> wrote:
>
> The extra registers should speed up things quite a bit. While that's not
> too much of a problem when emulating x86, which has few registers
> anyway, emulating a ppc or x86_64 target should be faster on an x86_64
> host. I haven't done measurements though.
>
> As for the plus in code size on x86_64 - that doesn't really apply to
> tcg, as that still generates 32-bit code when only 32-bit code is
> necessary, which still looks the same on x86_64. Plus it does simplify
> 64-bit operations.
>
> I would be very surprised if the improvement of emulating x86_64 on x86
> vs. x86_64 is only ~10%.

Here is a quick result for user mode.

x on y means running an target x on host y (the host is the same,
I just forced --cpu=i386 when compiling qemu).

Host:  CentOS 5.2 x86_64, E6600 (2.4GHz)
Benchmark: Spec2k gcc/integrate (compiled with gcc 4.1.2 -O2)

i386 on x86_64
gen code size       4005696/33497088
TB count            30704/524288
real    0m24.983s/user    0m24.834s

x86_64 on x86_64
gen code size       4413408/33497088
TB count            30247/524288
real    0m24.932s/user    0m24.749s

i386 on i386
gen code size       3439008/33497088
TB count            30704/524288
real    0m26.391s/user    0m26.131s

x86_64 on i386
gen code size       5715248/33497088
TB count            30254/524288
real    0m28.233s/user    0m27.985s


Laurent

  parent reply	other threads:[~2009-01-27 15:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-24 19:44 [Qemu-devel] [PATCH] Enabled building of x86_64 code on Mac OS X Alexander Graf
2009-01-26 15:40 ` Anthony Liguori
2009-01-27  0:34   ` Paul Brook
2009-01-27  0:42     ` Jamie Lokier
2009-01-27  0:59       ` Paul Brook
2009-01-27  1:22         ` Anthony Liguori
2009-01-27  9:21           ` Alexander Graf
2009-01-27 14:37             ` Jamie Lokier
2009-01-27 15:00             ` Laurent Desnogues [this message]
     [not found]   ` <BCD74E09-BC4C-4FC6-B814-D0276B763A9C@hotmail.com>
2009-01-27  0:40     ` C.W. Betts

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=761ea48b0901270700g208c28b1r3c57f0f3c59d109c@mail.gmail.com \
    --to=laurent.desnogues@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 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).