diff options
author | Víctor Colombo <victor.colombo@eldorado.org.br> | 2022-09-06 09:55:21 -0300 |
---|---|---|
committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-09-20 10:54:06 -0300 |
commit | af721a31696a1e08d8dcdabcd14c4cb09f9a5e16 (patch) | |
tree | c637d9b3dc9f9f363a42ed5c945bc9b1ca916f4a /target | |
parent | 9f097daa5483cdb7d745740606232c931d32b796 (diff) | |
download | qemu-af721a31696a1e08d8dcdabcd14c4cb09f9a5e16.zip qemu-af721a31696a1e08d8dcdabcd14c4cb09f9a5e16.tar.gz qemu-af721a31696a1e08d8dcdabcd14c4cb09f9a5e16.tar.bz2 |
target/ppc: Set OV32 when OV is set
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>
Diffstat (limited to 'target')
-rw-r--r-- | target/ppc/int_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/ppc/int_helper.c b/target/ppc/int_helper.c index d905f07..6960961 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; } } |