From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KXhym-00031c-Te for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:43:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KXhym-00030i-3g for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:43:56 -0400 Received: from [199.232.76.173] (port=38253 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXhyl-00030Y-R1 for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:43:55 -0400 Received: from savannah.gnu.org ([199.232.41.3]:34632 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 1KXhyl-0004qn-IY for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:43:55 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KXhyk-0000sP-OV for qemu-devel@nongnu.org; Mon, 25 Aug 2008 19:43:54 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KXhyk-0000sJ-GV for qemu-devel@nongnu.org; Mon, 25 Aug 2008 19:43:54 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Mon, 25 Aug 2008 19:43:54 +0000 Subject: [Qemu-devel] [5085] Fix udiv and sdiv on Sparc64 (Vince Weaver) 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: 5085 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5085 Author: blueswir1 Date: 2008-08-25 19:43:53 +0000 (Mon, 25 Aug 2008) Log Message: ----------- Fix udiv and sdiv on Sparc64 (Vince Weaver) Modified Paths: -------------- trunk/target-sparc/op_helper.c Modified: trunk/target-sparc/op_helper.c =================================================================== --- trunk/target-sparc/op_helper.c 2008-08-24 23:16:35 UTC (rev 5084) +++ trunk/target-sparc/op_helper.c 2008-08-25 19:43:53 UTC (rev 5085) @@ -2288,7 +2288,7 @@ uint64_t x0; uint32_t x1; - x0 = a | ((uint64_t) (env->y) << 32); + x0 = (a & 0xffffffff) | ((int64_t) (env->y) << 32); x1 = b; if (x1 == 0) { @@ -2310,7 +2310,7 @@ int64_t x0; int32_t x1; - x0 = a | ((int64_t) (env->y) << 32); + x0 = (a & 0xffffffff) | ((int64_t) (env->y) << 32); x1 = b; if (x1 == 0) {