[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [5296] Fix arguments used in cas/casx, thanks to Igor Koval
From: |
Blue Swirl |
Subject: |
[Qemu-devel] [5296] Fix arguments used in cas/casx, thanks to Igor Kovalenko for spotting |
Date: |
Mon, 22 Sep 2008 16:52:29 +0000 |
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 */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [5296] Fix arguments used in cas/casx, thanks to Igor Kovalenko for spotting,
Blue Swirl <=