From 118495f4b14e88d4d4d7bea36f87d7ef6e0193dd Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 17 Aug 2018 14:04:19 -0400 Subject: [PATCH] target/arm: Use fp_status_fp16 for do_fmpa_zpzzz_h This makes float16_muladd correctly use FZ16 not FZ. Fixes: 6ceabaad110 Backports commit 52a339b11d1719a6589de40606859939875fda9a from qemu --- qemu/target/arm/sve_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/target/arm/sve_helper.c b/qemu/target/arm/sve_helper.c index 7092147c..97669ccc 100644 --- a/qemu/target/arm/sve_helper.c +++ b/qemu/target/arm/sve_helper.c @@ -2883,7 +2883,7 @@ static void do_fmla_zpzzz_h(CPUARMState *env, void *vg, uint32_t desc, e1 = *(uint16_t *)(vn + H1_2(i)) ^ neg1; e2 = *(uint16_t *)(vm + H1_2(i)); e3 = *(uint16_t *)(va + H1_2(i)) ^ neg3; - r = float16_muladd(e1, e2, e3, 0, &env->vfp.fp_status); + r = float16_muladd(e1, e2, e3, 0, &env->vfp.fp_status_f16); *(uint16_t *)(vd + H1_2(i)) = r; } } while (i & 63);