qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Nathan Froyd <froydnj@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] target-ppc: add integer Altivec instructions
Date: Sat, 13 Dec 2008 11:08:49 -0800	[thread overview]
Message-ID: <20081213190849.GA23471@codesourcery.com> (raw)

This patch series adds support for integer Altivec instructions to QEMU,
including element-wise loads and stores.  It's rather long (42
individual patches), so to avoid patch-bombing the list, I've placed the
patch series at:

  http://www.method-combination.net/qemu/altivec-patches/

For easier viewing of the whole series, there's also one comprehensive
patch:

  http://www.method-combination.net/qemu/altivec-patches/0000-BIG-PATCH.patch

diffstat says:

 target-ppc/cpu.h       |   10 +
 target-ppc/helper.h    |  127 +++++++
 target-ppc/op_helper.c |  862 ++++++++++++++++++++++++++++++++++++++++++++++++
 target-ppc/translate.c |  416 +++++++++++++++++++++++
 4 files changed, 1415 insertions(+), 0 deletions(-)

Why only the integer instructions?  I originally wrote support for the
whole instruction set, but I did it in the days of dyngen.  So a
straight forward-port was out of the question.  The original patch also
sloppily used native float, rather than float32, and used C99 math
functions to implement some of the more exotic Altivec instructions.
Both of these decisions mean that some care has to be taken in porting
the floating-point instructions.

I figured it'd be better to push out the integer instructions now and
the floating-point instructions later, rather than waiting for some
unspecified time for full support.  (After all, target-ppc has done just
fine with only {l,st}vx{,l}, almost anything additional is an
improvement!)

Comments and/or commits on my behalf welcome. :)

-Nathan

             reply	other threads:[~2008-12-13 19:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-13 19:08 Nathan Froyd [this message]
     [not found] ` <5C882EC3-989B-4ED0-9EE7-BAB88161037A@hotmail.com>
2008-12-13 23:37   ` [Qemu-devel] [PATCH] target-ppc: add integer Altivec instructions C.W. Betts
2008-12-13 23:45   ` Nathan Froyd
2008-12-14 16:19 ` Thiemo Seufer

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=20081213190849.GA23471@codesourcery.com \
    --to=froydnj@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).