From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5644] target-ppc: fix flags computation for tcg_gen_qemu_st
Date: Fri, 07 Nov 2008 13:48:25 +0000 [thread overview]
Message-ID: <E1KyRhJ-0001tk-US@cvs.savannah.gnu.org> (raw)
Revision: 5644
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5644
Author: aurel32
Date: 2008-11-07 13:48:25 +0000 (Fri, 07 Nov 2008)
Log Message:
-----------
target-ppc: fix flags computation for tcg_gen_qemu_st
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-06 18:54:46 UTC (rev 5643)
+++ trunk/target-ppc/translate.c 2008-11-07 13:48:25 UTC (rev 5644)
@@ -2759,7 +2759,7 @@
static always_inline void gen_qemu_st8(TCGv arg0, TCGv arg1, int flags)
{
- gen_qemu_st8_ppc32(arg0, arg1, flags >> 1);
+ gen_qemu_st8_ppc32(arg0, arg1, flags);
}
static always_inline void gen_qemu_st16(TCGv arg0, TCGv arg1, int flags)
@@ -2768,10 +2768,10 @@
TCGv temp = tcg_temp_new(TCG_TYPE_I32);
tcg_gen_ext16u_i32(temp, arg0);
tcg_gen_bswap16_i32(temp, temp);
- gen_qemu_st16_ppc32(temp, arg1, flags >> 1);
+ gen_qemu_st16_ppc32(temp, arg1, flags);
tcg_temp_free(temp);
} else
- gen_qemu_st16_ppc32(arg0, arg1, flags >> 1);
+ gen_qemu_st16_ppc32(arg0, arg1, flags);
}
static always_inline void gen_qemu_st32(TCGv arg0, TCGv arg1, int flags)
@@ -2779,10 +2779,10 @@
if (unlikely(flags & 1)) {
TCGv temp = tcg_temp_new(TCG_TYPE_I32);
tcg_gen_bswap_i32(temp, arg0);
- gen_qemu_st32_ppc32(temp, arg1, flags >> 1);
+ gen_qemu_st32_ppc32(temp, arg1, flags);
tcg_temp_free(temp);
} else
- gen_qemu_st32_ppc32(arg0, arg1, flags >> 1);
+ gen_qemu_st32_ppc32(arg0, arg1, flags);
}
static always_inline void gen_qemu_st64(TCGv arg0, TCGv arg1, int flags)
@@ -2790,10 +2790,10 @@
if (unlikely(flags & 1)) {
TCGv temp = tcg_temp_new(TCG_TYPE_I64);
tcg_gen_bswap_i64(temp, arg0);
- gen_qemu_st64_ppc32(temp, arg1, flags >> 1);
+ gen_qemu_st64_ppc32(temp, arg1, flags);
tcg_temp_free(temp);
} else
- gen_qemu_st64_ppc32(arg0, arg1, flags >> 1);
+ gen_qemu_st64_ppc32(arg0, arg1, flags);
}
#endif
reply other threads:[~2008-11-07 13:48 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=E1KyRhJ-0001tk-US@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).