From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KyRhM-0001Xs-5w for qemu-devel@nongnu.org; Fri, 07 Nov 2008 08:48:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KyRhL-0001Xe-LZ for qemu-devel@nongnu.org; Fri, 07 Nov 2008 08:48:27 -0500 Received: from [199.232.76.173] (port=50479 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KyRhL-0001Xb-Gp for qemu-devel@nongnu.org; Fri, 07 Nov 2008 08:48:27 -0500 Received: from savannah.gnu.org ([199.232.41.3]:41790 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KyRhL-00037x-5M for qemu-devel@nongnu.org; Fri, 07 Nov 2008 08:48:27 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KyRhK-0001tp-99 for qemu-devel@nongnu.org; Fri, 07 Nov 2008 13:48:26 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KyRhJ-0001tk-US for qemu-devel@nongnu.org; Fri, 07 Nov 2008 13:48:26 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Fri, 07 Nov 2008 13:48:25 +0000 Subject: [Qemu-devel] [5644] target-ppc: fix flags computation for tcg_gen_qemu_st Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 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