From: Alexander Graf <agraf@suse.de>
To: "qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Subject: [Qemu-devel] [PATCH 03/13] target-s390x: Fix wrong argument in call of tcg_gen_shl_i64()
Date: Thu, 2 Jun 2011 08:51:33 +0200 [thread overview]
Message-ID: <1306997503-29304-4-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1306997503-29304-1-git-send-email-agraf@suse.de>
From: Stefan Weil <weil@mail.berlios.de>
tcg_gen_shl_i64 needs a 3rd argument of type TCGv_i64.
Set tmp4 so it can be used here.
v2:
Don't call tcg_const_i64() inside of the loop
because it creates additional code.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
target-s390x/translate.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/target-s390x/translate.c b/target-s390x/translate.c
index 8e71df3..865a9df 100644
--- a/target-s390x/translate.c
+++ b/target-s390x/translate.c
@@ -2056,7 +2056,7 @@ do_mh:
even for very long ones... */
tmp = get_address(s, 0, b2, d2);
tmp3 = tcg_const_i64(stm_len);
- tmp4 = tcg_const_i64(32);
+ tmp4 = tcg_const_i64(op == 0x26 ? 32 : 4);
for (i = r1;; i = (i + 1) % 16) {
switch (op) {
case 0x4:
@@ -2070,7 +2070,7 @@ do_mh:
#else
tmp2 = tcg_temp_new_i64();
tcg_gen_qemu_ld32u(tmp2, tmp, get_mem_index(s));
- tcg_gen_shl_i64(tmp2, tmp2, 4);
+ tcg_gen_shl_i64(tmp2, tmp2, tmp4);
tcg_gen_ext32u_i64(regs[i], regs[i]);
tcg_gen_or_i64(regs[i], regs[i], tmp2);
#endif
--
1.6.0.2
next prev parent reply other threads:[~2011-06-03 11:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-02 6:51 [Qemu-devel] [PULL 00/13] s390x patch queue June 03 2011 Alexander Graf
2011-06-02 6:51 ` [Qemu-devel] [PATCH 01/13] s390x: update zipl rom Alexander Graf
2011-06-02 6:51 ` [Qemu-devel] [PATCH 02/13] target-s390x: Fix build for non-linux hosts Alexander Graf
2011-06-02 6:51 ` Alexander Graf [this message]
2011-06-02 6:51 ` [Qemu-devel] [PATCH 04/13] target-s390x: Fix duplicate call of tcg_temp_new_i64 Alexander Graf
2011-06-02 6:51 ` [Qemu-devel] [PATCH 05/13] target-s390x: Add missing tcg_temp_free_i64() in gen_jcc() Alexander Graf
2011-06-02 6:51 ` [Qemu-devel] [PATCH 06/13] target-s390x: Add missing tcg_temp_free_i64() in do_mh() Alexander Graf
2011-06-02 6:51 ` [Qemu-devel] [PATCH 07/13] target-s390x: Add missing tcg_temp_free_i64() in disas_b2() Alexander Graf
2011-06-02 6:51 ` [Qemu-devel] [PATCH 08/13] target-s390x: Add missing tcg_temp_free_i64() in disas_s390_insn(), opc == 0x8e Alexander Graf
2011-06-02 6:51 ` [Qemu-devel] [PATCH 09/13] target-s390x: Add missing tcg_temp_free_i64() in disas_s390_insn(), opc == 0x90 Alexander Graf
2011-06-02 6:51 ` [Qemu-devel] [PATCH 10/13] target-s390x: Add missing tcg_temp_free_i32() Alexander Graf
2011-06-02 6:51 ` [Qemu-devel] [PATCH 11/13] s390x: free tmp explicitly in every opcode for disas_a5() Alexander Graf
2011-06-02 6:51 ` [Qemu-devel] [PATCH 12/13] s390x: fix cksm instruction Alexander Graf
2011-06-02 6:51 ` [Qemu-devel] [PATCH 13/13] s390x: implement lrvgr Alexander Graf
2011-06-03 16:22 ` [Qemu-devel] [PULL 00/13] s390x patch queue June 03 2011 Aurelien Jarno
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=1306997503-29304-4-git-send-email-agraf@suse.de \
--to=agraf@suse.de \
--cc=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).