Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KhoeF-0002Sk-K5 for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:52:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KhoeE-0002ST-LF for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:52:30 -0400 Received: from [199.232.76.173] (port=34151 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhoeE-0002SQ-Hv for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:52:30 -0400 Received: from savannah.gnu.org ([199.232.41.3]:45877 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 1KhoeE-00013e-3u for qemu-devel@nongnu.org; Mon, 22 Sep 2008 12:52:30 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KhoeD-0007xc-H2 for qemu-devel@nongnu.org; Mon, 22 Sep 2008 16:52:29 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KhoeD-0007xY-7H for qemu-devel@nongnu.org; Mon, 22 Sep 2008 16:52:29 +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, 22 Sep 2008 16:52:29 +0000 Subject: [Qemu-devel] [5296] Fix arguments used in cas/casx, thanks to Igor Kovalenko for spotting 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: 5296 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5296 Author: blueswir1 Date: 2008-09-22 16:52:28 +0000 (Mon, 22 Sep 2008) Log Message: ----------- Fix arguments used in cas/casx, thanks to Igor Kovalenko for spotting Modified Paths: -------------- trunk/target-sparc/op_helper.c Modified: trunk/target-sparc/op_helper.c =================================================================== --- trunk/target-sparc/op_helper.c 2008-09-22 16:30:29 UTC (rev 5295) +++ trunk/target-sparc/op_helper.c 2008-09-22 16:52:28 UTC (rev 5296) @@ -2199,11 +2199,11 @@ { target_ulong ret; - val1 &= 0xffffffffUL; + val2 &= 0xffffffffUL; ret = helper_ld_asi(addr, asi, 4, 0); ret &= 0xffffffffUL; - if (val1 == ret) - helper_st_asi(addr, val2 & 0xffffffffUL, asi, 4); + if (val2 == ret) + helper_st_asi(addr, val1 & 0xffffffffUL, asi, 4); return ret; } @@ -2213,8 +2213,8 @@ target_ulong ret; ret = helper_ld_asi(addr, asi, 8, 0); - if (val1 == ret) - helper_st_asi(addr, val2, asi, 8); + if (val2 == ret) + helper_st_asi(addr, val1, asi, 8); return ret; } #endif /* TARGET_SPARC64 */