44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
|
|
From 6381854884f45d24fb67dca13519935e30642f48 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Liu Jing <liujing_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Mon, 14 Oct 2024 16:07:54 +0800
|
||
|
|
Subject: [PATCH] target/ppc: Set OV32 when OV is set
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
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>
|
||
|
|
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
|
||
|
|
Message-Id: <20220906125523.38765-7-victor.colombo@eldorado.org.br>
|
||
|
|
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
|
||
|
|
Signed-off-by: Liu Jing <liujing_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
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 9bc327bcba..b577b43f4c 100644
|
||
|
|
--- a/target/ppc/int_helper.c
|
||
|
|
+++ b/target/ppc/int_helper.c
|
||
|
|
@@ -36,9 +36,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.41.0.windows.1
|
||
|
|
|