qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5913] ARM: fix smmul and smmla/smmls usage of registers (Mans Rullgard).
@ 2008-12-07 14:18 Andrzej Zaborowski
  0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-12-07 14:18 UTC (permalink / raw)
  To: qemu-devel

Revision: 5913
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5913
Author:   balrog
Date:     2008-12-07 14:18:02 +0000 (Sun, 07 Dec 2008)

Log Message:
-----------
ARM: fix smmul and smmla/smmls usage of registers (Mans Rullgard).

This fixes the destination and accumulator registers for the smmul
and smmla instructions.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Acked-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>

Modified Paths:
--------------
    trunk/target-arm/translate.c

Modified: trunk/target-arm/translate.c
===================================================================
--- trunk/target-arm/translate.c	2008-12-07 14:03:27 UTC (rev 5912)
+++ trunk/target-arm/translate.c	2008-12-07 14:18:02 UTC (rev 5913)
@@ -6507,8 +6507,8 @@
                         tcg_gen_shri_i64(tmp64, tmp64, 32);
                         tmp = new_tmp();
                         tcg_gen_trunc_i64_i32(tmp, tmp64);
-                        if (rn != 15) {
-                            tmp2 = load_reg(s, rn);
+                        if (rd != 15) {
+                            tmp2 = load_reg(s, rd);
                             if (insn & (1 << 6)) {
                                 tcg_gen_sub_i32(tmp, tmp, tmp2);
                             } else {
@@ -6516,7 +6516,7 @@
                             }
                             dead_tmp(tmp2);
                         }
-                        store_reg(s, rd, tmp);
+                        store_reg(s, rn, tmp);
                     } else {
                         if (insn & (1 << 5))
                             gen_swap_half(tmp2);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-07 14:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-07 14:18 [Qemu-devel] [5913] ARM: fix smmul and smmla/smmls usage of registers (Mans Rullgard) Andrzej Zaborowski

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).