diff options
author | Víctor Colombo <victor.colombo@eldorado.org.br> | 2022-03-05 07:16:48 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2022-03-05 07:16:48 +0100 |
commit | a9eb50376ffb27a3f348b0bccf70a34b26be2a3c (patch) | |
tree | b6f460a5089d22e15affcf6842fa0837dffd118c | |
parent | e1428e5b575ffb6e5066d1769b10bd4b47f6770b (diff) | |
download | qemu-a9eb50376ffb27a3f348b0bccf70a34b26be2a3c.zip qemu-a9eb50376ffb27a3f348b0bccf70a34b26be2a3c.tar.gz qemu-a9eb50376ffb27a3f348b0bccf70a34b26be2a3c.tar.bz2 |
target/ppc: Add missing helper_reset_fpstatus to helper_XVCVSPBF16
Fixes: 3909ff1fac ("target/ppc: Implement xvcvbf16spn and xvcvspbf16 instructions")
Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220304175156.2012315-8-matheus.ferst@eldorado.org.br>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
-rw-r--r-- | target/ppc/fpu_helper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/ppc/fpu_helper.c b/target/ppc/fpu_helper.c index 7d34b88..bd12db9 100644 --- a/target/ppc/fpu_helper.c +++ b/target/ppc/fpu_helper.c @@ -2774,6 +2774,8 @@ void helper_XVCVSPBF16(CPUPPCState *env, ppc_vsr_t *xt, ppc_vsr_t *xb) ppc_vsr_t t = { }; int i, status; + helper_reset_fpstatus(env); + for (i = 0; i < 4; i++) { t.VsrH(2 * i + 1) = float32_to_bfloat16(xb->VsrW(i), &env->fp_status); } |