diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-08-20 19:59:35 -0700 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-09-21 19:35:19 +0300 |
commit | 9f54fef2c00f3c710ef277c2dd3813385315afd0 (patch) | |
tree | e6d58fca32d94a5c2e2f002e396b3d8f720d9d64 | |
parent | 5358980d3363079d423f7874d49e01e2024fb524 (diff) | |
download | qemu-9f54fef2c00f3c710ef277c2dd3813385315afd0.zip qemu-9f54fef2c00f3c710ef277c2dd3813385315afd0.tar.gz qemu-9f54fef2c00f3c710ef277c2dd3813385315afd0.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>
-rw-r--r-- | target/ppc/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/ppc/cpu.c b/target/ppc/cpu.c index 424f2e1..48257f7 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) |