]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: Fix vsum2sws
authorAnton Blanchard <anton@ozlabs.org>
Tue, 4 Jun 2019 19:01:14 +0000 (20:01 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 17 Sep 2019 20:16:58 +0000 (15:16 -0500)
commitb6159fc9a67c78c0783db0b7e704b8f57f827f6b
tree58577ab30e5534c9191cd449b6661676118b5035
parentda3bd13802dd49052dc1ac6443e24635dbf2ee51
target/ppc: Fix vsum2sws

A recent cleanup changed the pre zeroing of the result from 64 bit
to 32 bit operations:

-        result.u64[i] = 0;
+        result.VsrW(i) = 0;

This corrupts the result.

Fixes: 60594fea298d ("target/ppc: remove various HOST_WORDS_BIGENDIAN hacks in int_helper.c")
Signed-off-by: Anton Blanchard <anton@ozlabs.org>
Message-Id: <20190507004811.29968-9-anton@ozlabs.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
(upstream commit 7fa0ddc1d63806769d1b6246a62708d3bde39037)
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target/ppc/int_helper.c