aboutsummaryrefslogtreecommitdiff
path: root/target/ppc/cpu.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-08-20 19:59:35 -0700
committerMichael Tokarev <mjt@tls.msk.ru>2023-09-10 19:39:41 +0300
commit956b96f9e25f22a1e66d0dcacfb3621ef8a671b4 (patch)
tree9b72d06e07c936597caae5cb768c9555a1bbd0f9 /target/ppc/cpu.c
parentea25506b5d6439c76a3a6b7b55dd3f861e98eb85 (diff)
downloadqemu-956b96f9e25f22a1e66d0dcacfb3621ef8a671b4.zip
qemu-956b96f9e25f22a1e66d0dcacfb3621ef8a671b4.tar.gz
qemu-956b96f9e25f22a1e66d0dcacfb3621ef8a671b4.tar.bz2
target/ppc: Flush inputs to zero with NJ in ppc_store_vscr
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1779 Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org> (cherry picked from commit af03aeb631eeb81a44d2c0ff5b429cd4b5dc2799) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target/ppc/cpu.c')
-rw-r--r--target/ppc/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/ppc/cpu.c b/target/ppc/cpu.c
index 1a97b41..6e59768 100644
--- a/target/ppc/cpu.c
+++ b/target/ppc/cpu.c
@@ -59,6 +59,7 @@ void ppc_store_vscr(CPUPPCState *env, uint32_t vscr)
env->vscr_sat.u64[0] = vscr & (1u << VSCR_SAT);
env->vscr_sat.u64[1] = 0;
set_flush_to_zero((vscr >> VSCR_NJ) & 1, &env->vec_status);
+ set_flush_inputs_to_zero((vscr >> VSCR_NJ) & 1, &env->vec_status);
}
uint32_t ppc_get_vscr(CPUPPCState *env)