Skip to contentSkip to conversation

[5438] Fix error in fexpand (spotted by sparse)

Qemu-devel Blue Swirl 1 participant 1 message Oct 7, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 5438

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5438
Author:   blueswir1
Date:     2008-10-07 18:54:35 +0000 (Tue, 07 Oct 2008)

Log Message:
-----------
Fix error in fexpand (spotted by sparse)

Modified Paths:
--------------
trunk/target-sparc/op_helper.c

Modified: trunk/target-sparc/op_helper.c
===================================================================

target-sparc/op_helper.c +4 -4
@@ -450,10 +450,10 @@
 
     s.l = (uint32_t)(*(uint64_t *)&DT0 & 0xffffffff);
     d.d = DT1;
-    d.VIS_L64(0) = s.VIS_W32(0) << 4;
-    d.VIS_L64(1) = s.VIS_W32(1) << 4;
-    d.VIS_L64(2) = s.VIS_W32(2) << 4;
-    d.VIS_L64(3) = s.VIS_W32(3) << 4;
+    d.VIS_W64(0) = s.VIS_B32(0) << 4;
+    d.VIS_W64(1) = s.VIS_B32(1) << 4;
+    d.VIS_W64(2) = s.VIS_B32(2) << 4;
+    d.VIS_W64(3) = s.VIS_B32(3) << 4;
 
     DT0 = d.d;
 }