[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/19] target/ppc: Set OV32 when OV is set
From: |
Víctor Colombo |
Subject: |
[PATCH 06/19] target/ppc: Set OV32 when OV is set |
Date: |
Thu, 1 Sep 2022 10:17:43 -0300 |
According to PowerISA: "OV32 is set whenever OV is implicitly set, and
is set to the same value that OV is defined to be set to in 32-bit
mode".
This patch changes helper_update_ov_legacy to set/clear ov32 when
applicable.
Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
---
target/ppc/int_helper.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/ppc/int_helper.c b/target/ppc/int_helper.c
index d905f07d02..696096100b 100644
--- a/target/ppc/int_helper.c
+++ b/target/ppc/int_helper.c
@@ -37,9 +37,9 @@
static inline void helper_update_ov_legacy(CPUPPCState *env, int ov)
{
if (unlikely(ov)) {
- env->so = env->ov = 1;
+ env->so = env->ov = env->ov32 = 1;
} else {
- env->ov = 0;
+ env->ov = env->ov32 = 0;
}
}
--
2.25.1
- [PATCH 01/19] target/ppc: Remove extra space from s128 field in ppc_vsr_t, (continued)
- [PATCH 01/19] target/ppc: Remove extra space from s128 field in ppc_vsr_t, Víctor Colombo, 2022/09/01
- [PATCH 02/19] target/ppc: Remove unused xer_* macros, Víctor Colombo, 2022/09/01
- [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 <=
- [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
- [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