From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IsotO-0004ET-6U for qemu-devel@nongnu.org; Thu, 15 Nov 2007 19:17:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IsotL-0004CW-Qf for qemu-devel@nongnu.org; Thu, 15 Nov 2007 19:17:04 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IsotL-0004CL-Hs for qemu-devel@nongnu.org; Thu, 15 Nov 2007 19:17:03 -0500 Received: from pop-siberian.atl.sa.earthlink.net ([207.69.195.71]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Isntp-0003yY-3n for qemu-devel@nongnu.org; Thu, 15 Nov 2007 18:13:29 -0500 Received: from user-142h2k8.cable.mindspring.com ([72.40.138.136] helo=earthlink.net) by pop-siberian.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1Isntm-0007CG-00 for qemu-devel@nongnu.org; Thu, 15 Nov 2007 18:13:26 -0500 Message-ID: <473CD296.8090100@earthlink.net> Date: Thu, 15 Nov 2007 18:13:26 -0500 From: Robert Reif MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050007060403080806050908" Subject: [Qemu-devel] [PATCH] sparc32 remove unnecessary & 0xffffffff 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 This is a multi-part message in MIME format. --------------050007060403080806050908 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Remove unnecessary masking of lower word with 0xffffffff. --------------050007060403080806050908 Content-Type: text/plain; name="mask.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mask.diff.txt" Index: target-sparc/op_helper.c =================================================================== RCS file: /sources/qemu/qemu/target-sparc/op_helper.c,v retrieving revision 1.52 diff -p -u -r1.52 op_helper.c --- target-sparc/op_helper.c 11 Nov 2007 19:46:09 -0000 1.52 +++ target-sparc/op_helper.c 15 Nov 2007 23:10:36 -0000 @@ -263,7 +263,7 @@ void helper_ld_asi(int asi, int size, in case 8: tmp = ldq_code(T0 & ~7); ret = tmp >> 32; - T0 = tmp & 0xffffffff; + T0 = tmp; break; } break; @@ -282,7 +282,7 @@ void helper_ld_asi(int asi, int size, in case 8: tmp = ldq_user(T0 & ~7); ret = tmp >> 32; - T0 = tmp & 0xffffffff; + T0 = tmp; break; } break; @@ -301,7 +301,7 @@ void helper_ld_asi(int asi, int size, in case 8: tmp = ldq_kernel(T0 & ~7); ret = tmp >> 32; - T0 = tmp & 0xffffffff; + T0 = tmp; break; } break; @@ -325,7 +325,7 @@ void helper_ld_asi(int asi, int size, in case 8: tmp = ldq_phys(T0 & ~7); ret = tmp >> 32; - T0 = tmp & 0xffffffff; + T0 = tmp; break; } break; @@ -349,7 +349,7 @@ void helper_ld_asi(int asi, int size, in tmp = ldq_phys((target_phys_addr_t)(T0 & ~7) | ((target_phys_addr_t)(asi & 0xf) << 32)); ret = tmp >> 32; - T0 = tmp & 0xffffffff; + T0 = tmp; break; } break; --------------050007060403080806050908--