[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/19] target/ppc: Clear fpstatus flags on VSX_CVT_INT_TO_FP_VECT
From: |
Víctor Colombo |
Subject: |
[PATCH 08/19] target/ppc: Clear fpstatus flags on VSX_CVT_INT_TO_FP_VECTOR |
Date: |
Thu, 1 Sep 2022 10:17:45 -0300 |
Fix xscvsdqp incorrectly not clearing the FI bit.
Power ISA states that xscvsdqp should always set FPSCR.FI=0
Right now, QEMU sometimes is incorrectly setting the flag to 1.
Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
---
target/ppc/fpu_helper.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c
index da79c64eca..94029883c7 100644
--- a/target/ppc/fpu_helper.c
+++ b/target/ppc/fpu_helper.c
@@ -3126,6 +3126,7 @@ void helper_##op(CPUPPCState *env, uint32_t opcode,
\
{ \
ppc_vsr_t t = *xt; \
\
+ helper_reset_fpstatus(env); \
t.tfld = stp##_to_##ttp(xb->sfld, &env->fp_status); \
helper_compute_fprf_##ttp(env, t.tfld); \
\
--
2.25.1
- [PATCH 03/19] target/ppc: Zero second doubleword in DFP instructions, (continued)
- [PATCH 03/19] target/ppc: Zero second doubleword in DFP instructions, Víctor Colombo, 2022/09/01
- [PATCH 05/19] target/ppc: Zero second doubleword for VSX madd 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 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 <=
- [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
- [PATCH 11/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_INT_VECTOR, Víctor Colombo, 2022/09/01
- [PATCH 13/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_INT, Víctor Colombo, 2022/09/01
- [PATCH 12/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_INT2, Víctor Colombo, 2022/09/01
- [PATCH 15/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_FP_VECTOR, Víctor Colombo, 2022/09/01
- [PATCH 16/19] target/ppc: Clear fpstatus flags for xscvqpdp, Víctor Colombo, 2022/09/01
- [PATCH 14/19] target/ppc: Clear fpstatus flags on VSX_CVT_FP_TO_FP_HP, Víctor Colombo, 2022/09/01