qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5085] Fix udiv and sdiv on Sparc64 (Vince Weaver)
@ 2008-08-25 19:43 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-08-25 19:43 UTC (permalink / raw)
  To: qemu-devel

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) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-25 19:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-25 19:43 [Qemu-devel] [5085] Fix udiv and sdiv on Sparc64 (Vince Weaver) 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).