[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/19] target/ppc: Zero second doubleword for VSX madd instructio
From: |
Víctor Colombo |
Subject: |
[PATCH 05/19] target/ppc: Zero second doubleword for VSX madd instructions |
Date: |
Thu, 1 Sep 2022 10:17:42 -0300 |
In 205eb5a89e we updated most VSX instructions to zero the
second doubleword, as is requested by PowerISA since v3.1.
However, VSX_MADD helper was left behind unchanged, while it
is also affected and should be fixed as well.
This patch applies the fix for MADD instructions.
Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
---
target/ppc/fpu_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c
index 7ab6beadad..da79c64eca 100644
--- a/target/ppc/fpu_helper.c
+++ b/target/ppc/fpu_helper.c
@@ -2178,7 +2178,7 @@ VSX_TSQRT(xvtsqrtsp, 4, float32, VsrW(i), -126, 23)
void helper_##op(CPUPPCState *env, ppc_vsr_t *xt, \
ppc_vsr_t *s1, ppc_vsr_t *s2, ppc_vsr_t *s3) \
{ \
- ppc_vsr_t t = *xt; \
+ ppc_vsr_t t = { }; \
int i; \
\
helper_reset_fpstatus(env); \
--
2.25.1
- [PATCH 00/19] Multiple ppc instructions fixes, Víctor Colombo, 2022/09/01
- [PATCH 02/19] target/ppc: Remove unused xer_* macros, Víctor Colombo, 2022/09/01
- [PATCH 01/19] target/ppc: Remove extra space from s128 field in ppc_vsr_t, Víctor Colombo, 2022/09/01
- [PATCH 03/19] target/ppc: Zero second doubleword in DFP instructions, Víctor Colombo, 2022/09/01
- [PATCH 04/19] target/ppc: Set result to QNaN for DENBCD when VXCVI occurs, Víctor Colombo, 2022/09/01
- [PATCH 05/19] target/ppc: Zero second doubleword for VSX madd instructions,
Víctor Colombo <=
- [PATCH 06/19] target/ppc: Set OV32 when OV is set, Víctor Colombo, 2022/09/01
- [PATCH 07/19] target/ppc: Zero second doubleword of VSR registers for FPR insns, Víctor Colombo, 2022/09/01
- [PATCH 08/19] target/ppc: Clear fpstatus flags on VSX_CVT_INT_TO_FP_VECTOR, Víctor Colombo, 2022/09/01
- [PATCH 09/19] target/ppc: Clear fpstatus flags on VSX_CVT_INT_TO_FP, Víctor Colombo, 2022/09/01
- [PATCH 10/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_FP, Víctor Colombo, 2022/09/01