From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8Eql-0004Fq-I3 for qemu-devel@nongnu.org; Mon, 26 Sep 2011 13:20:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8Eqk-0001tg-C3 for qemu-devel@nongnu.org; Mon, 26 Sep 2011 13:20:15 -0400 Received: from thoth.sbs.de ([192.35.17.2]:34238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8Eqj-0001tN-W1 for qemu-devel@nongnu.org; Mon, 26 Sep 2011 13:20:14 -0400 Message-ID: <4E80B440.7040000@siemens.com> Date: Mon, 26 Sep 2011 19:20:00 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] target-i386: Remove redundant word mask in port out instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Blue Swirl , Aurelien Jarno , Richard Henderson T0 was already masked to 16 bits when loading it. Signed-off-by: Jan Kiszka --- target-i386/translate.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/target-i386/translate.c b/target-i386/translate.c index b894e97..1ef8d16 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -6116,7 +6116,6 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) if (use_icount) gen_io_start(); tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[0]); - tcg_gen_andi_i32(cpu_tmp2_i32, cpu_tmp2_i32, 0xffff); tcg_gen_trunc_tl_i32(cpu_tmp3_i32, cpu_T[1]); gen_helper_out_func(ot, cpu_tmp2_i32, cpu_tmp3_i32); if (use_icount) { @@ -6159,7 +6158,6 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) if (use_icount) gen_io_start(); tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_T[0]); - tcg_gen_andi_i32(cpu_tmp2_i32, cpu_tmp2_i32, 0xffff); tcg_gen_trunc_tl_i32(cpu_tmp3_i32, cpu_T[1]); gen_helper_out_func(ot, cpu_tmp2_i32, cpu_tmp3_i32); if (use_icount) { -- 1.7.3.4