* [Qemu-devel] [5296] Fix arguments used in cas/casx, thanks to Igor Kovalenko for spotting
@ 2008-09-22 16:52 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-09-22 16:52 UTC (permalink / raw)
To: qemu-devel
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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-22 16:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 16:52 [Qemu-devel] [5296] Fix arguments used in cas/casx, thanks to Igor Kovalenko for spotting Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).