qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5595] target-ppc: fix srw on 64-bit targets
Date: Sun, 02 Nov 2008 08:22:18 +0000	[thread overview]
Message-ID: <E1KwYDy-0006Zr-1a@cvs.savannah.gnu.org> (raw)

Revision: 5595
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5595
Author:   aurel32
Date:     2008-11-02 08:22:16 +0000 (Sun, 02 Nov 2008)

Log Message:
-----------
target-ppc: fix srw on 64-bit targets

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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

Modified: trunk/target-ppc/translate.c
===================================================================
--- trunk/target-ppc/translate.c	2008-11-01 14:50:20 UTC (rev 5594)
+++ trunk/target-ppc/translate.c	2008-11-02 08:22:16 UTC (rev 5595)
@@ -2012,7 +2012,7 @@
 /* srw & srw. */
 GEN_HANDLER(srw, 0x1F, 0x18, 0x10, 0x00000000, PPC_INTEGER)
 {
-    TCGv temp;
+    TCGv temp, temp2;
     int l1, l2;
     l1 = gen_new_label();
     l2 = gen_new_label();
@@ -2024,8 +2024,10 @@
     tcg_gen_br(l2);
     gen_set_label(l1);
     tcg_gen_andi_tl(temp, cpu_gpr[rB(ctx->opcode)], 0x3f);
-    tcg_gen_shr_tl(cpu_gpr[rA(ctx->opcode)], cpu_gpr[rS(ctx->opcode)], temp);
-    tcg_gen_ext32u_tl(cpu_gpr[rA(ctx->opcode)], cpu_gpr[rA(ctx->opcode)]);
+    temp2 = tcg_temp_new(TCG_TYPE_TL);
+    tcg_gen_ext32u_tl(temp2, cpu_gpr[rS(ctx->opcode)]);
+    tcg_gen_shr_tl(cpu_gpr[rA(ctx->opcode)], temp2, temp);
+    tcg_temp_free(temp2);
     gen_set_label(l2);
     tcg_temp_free(temp);
     if (unlikely(Rc(ctx->opcode) != 0))

                 reply	other threads:[~2008-11-02  8:22 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=E1KwYDy-0006Zr-1a@cvs.savannah.gnu.org \
    --to=aurelien@aurel32.net \
    --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).