[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 11/38] target/ppc: Fix vsum2sws
From: |
David Gibson |
Subject: |
[Qemu-devel] [PULL 11/38] target/ppc: Fix vsum2sws |
Date: |
Tue, 21 May 2019 16:28:57 +1000 |
From: Anton Blanchard <address@hidden>
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 <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
target/ppc/int_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/ppc/int_helper.c b/target/ppc/int_helper.c
index fd715b4076..f5c81acd53 100644
--- a/target/ppc/int_helper.c
+++ b/target/ppc/int_helper.c
@@ -2038,7 +2038,7 @@ void helper_vsum2sws(CPUPPCState *env, ppc_avr_t *r,
ppc_avr_t *a, ppc_avr_t *b)
for (i = 0; i < ARRAY_SIZE(r->u64); i++) {
int64_t t = (int64_t)b->VsrSW(upper + i * 2);
- result.VsrW(i) = 0;
+ result.VsrD(i) = 0;
for (j = 0; j < ARRAY_SIZE(r->u64); j++) {
t += a->VsrSW(2 * i + j);
}
--
2.21.0
- [Qemu-devel] [PULL 05/38] hw/ppc/40p: Move the MC146818 RTC to the board where it belongs, (continued)
- [Qemu-devel] [PULL 05/38] hw/ppc/40p: Move the MC146818 RTC to the board where it belongs, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 03/38] configure: Use quotes around uses of $CPU_CFLAGS, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 01/38] target/ppc/kvm: Fix trace typo, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 07/38] target/ppc: Add ibm, purr and ibm, spurr device-tree properties, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 13/38] spapr/xive: EQ page should be naturally aligned, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 10/38] target/ppc: Fix vslv and vsrv, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 12/38] target/ppc: Fix xxspltib, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 04/38] hw/ppc/prep: use TYPE_MC146818_RTC instead of a hardcoded string, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 06/38] hw/ppc/40p: use 1900 as a base year, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 09/38] target/ppc: Fix xxbrq, xxbrw, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 11/38] target/ppc: Fix vsum2sws,
David Gibson <=
- [Qemu-devel] [PULL 19/38] spapr/xive: Sanity checks of OV5 during CAS, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 02/38] configure: Distinguish ppc64 and ppc64le hosts, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 15/38] spapr/xive: print out the EQ page address in the monitor, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 20/38] target/ppc: Set PSSCR_EC on cpu halt to prevent spurious wakeup, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 18/38] target/ppc: Fix xvabs[sd]p, xvnabs[sd]p, xvneg[sd]p, xvcpsgn[sd]p, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 14/38] spapr/xive: fix EQ page addresses above 64GB, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 17/38] target/ppc: Optimise VSX_LOAD_SCALAR_DS and VSX_VECTOR_LOAD_STORE, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 08/38] target/ppc: Fix xvxsigdp, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 29/38] spapr/xive: introduce a VM state change handler, David Gibson, 2019/05/21
- [Qemu-devel] [PULL 27/38] spapr/xive: add hcall support when under KVM, David Gibson, 2019/05/21