target/ppc: Fix vsum2sws
commit7fa0ddc1d63806769d1b6246a62708d3bde39037
authorAnton Blanchard <anton@ozlabs.org>
Tue, 7 May 2019 00:48:11 +0000 (7 10:48 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 29 May 2019 01:39:44 +0000 (29 11:39 +1000)
tree2b6db6925ba01f1229edf6a24816db5010ca7088
parent63be02fc69d44442dc7eb316d44f1c1fbe49c075
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>
target/ppc/int_helper.c