[5296] Fix arguments used in cas/casx, thanks to Igor Kovalenko for spotting
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
===================================================================
target-sparc/op_helper.c +5 -5
@@ -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 */