qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Torbjörn Andersson" <tobbe.tt@home.se>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] ARM QADD broken
Date: Thu, 18 Sep 2008 20:04:26 +0200	[thread overview]
Message-ID: <00d701c919b8$ffb3f370$ff1bda50$@tt@home.se> (raw)

[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]

Hi all!

 

I found a regression in target-arm, specifically the QADD instruction. Seems
to be a simple typo, but sadly quite hard to track down.

I have verified the patch against a real ARM v5 CPU.

 

Btw. Could someone also tell me why op_addsub.h and the NEON extension is
licensed under GPL? Is it some kind of agreement with ARM or something else?
The reason for asking is that the QEMU license file states that libqemu.a is
released under LGPL, but some files under target-arm voids this. The answer
doesn’t need to long but please longer than single “because” J

 

Further, would an LGPL compatible replacement of op_addsub.h be accepted and
replace the current implementation?

 

Finally, I hope this patch is warmly welcomed in the target-arm camp!

 

/Torbjörn

 

Index: target-arm/translate.c

===================================================================

--- target-arm/translate.c       (revision 5234)

+++ target-arm/translate.c    (working copy)

@@ -5946,7 +5946,7 @@

         case 0x5: /* saturating add/subtract */

             rd = (insn >> 12) & 0xf;

             rn = (insn >> 16) & 0xf;

-            tmp = load_reg(s, rn);

+            tmp = load_reg(s, rm);

             tmp2 = load_reg(s, rn);

             if (op1 & 2)

                 gen_helper_double_saturate(tmp2, tmp2);


[-- Attachment #2: Type: text/html, Size: 4700 bytes --]

                 reply	other threads:[~2008-09-18 18:04 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='00d701c919b8$ffb3f370$ff1bda50$@tt@home.se' \
    --to=tobbe.tt@home.se \
    --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).