[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH v2 14/14] target/arm: Fix sqrt_f16 exception raising
From: |
Richard Henderson |
Subject: |
[Qemu-arm] [PATCH v2 14/14] target/arm: Fix sqrt_f16 exception raising |
Date: |
Wed, 2 May 2018 15:15:52 -0700 |
From: Alex Bennée <address@hidden>
We are meant to explicitly pass fpst, not cpu_env.
Cc: address@hidden
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target/arm/translate-a64.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c
index b73d6d96cd..07e196c19c 100644
--- a/target/arm/translate-a64.c
+++ b/target/arm/translate-a64.c
@@ -4739,7 +4739,8 @@ static void handle_fp_1src_half(DisasContext *s, int
opcode, int rd, int rn)
tcg_gen_xori_i32(tcg_res, tcg_op, 0x8000);
break;
case 0x3: /* FSQRT */
- gen_helper_sqrt_f16(tcg_res, tcg_op, cpu_env);
+ fpst = get_fpstatus_ptr(true);
+ gen_helper_sqrt_f16(tcg_res, tcg_op, fpst);
break;
case 0x8: /* FRINTN */
case 0x9: /* FRINTP */
--
2.14.3
- Re: [Qemu-arm] [PATCH v2 01/14] target/arm: Implement vector shifted SCVF/UCVF for fp16, (continued)
- [Qemu-arm] [PATCH v2 02/14] target/arm: Implement vector shifted FCVT for fp16, Richard Henderson, 2018/05/02
- [Qemu-arm] [PATCH v2 04/14] target/arm: Clear SVE high bits for FMOV, Richard Henderson, 2018/05/02
- [Qemu-arm] [PATCH v2 03/14] target/arm: Fix float16 to/from int16, Richard Henderson, 2018/05/02
- [Qemu-arm] [PATCH v2 05/14] target/arm: Implement FMOV (general) for fp16, Richard Henderson, 2018/05/02
- [Qemu-arm] [PATCH v2 06/14] target/arm: Implement FCVT (scalar, integer) for fp16, Richard Henderson, 2018/05/02
- [Qemu-arm] [PATCH v2 07/14] target/arm: Implement FCVT (scalar, fixed-point) for fp16, Richard Henderson, 2018/05/02
- [Qemu-arm] [PATCH v2 09/14] target/arm: Implement FP data-processing (2 source) for fp16, Richard Henderson, 2018/05/02
- [Qemu-arm] [PATCH v2 14/14] target/arm: Fix sqrt_f16 exception raising,
Richard Henderson <=
- [Qemu-arm] [PATCH v2 12/14] target/arm: Implement FCSEL for fp16, Richard Henderson, 2018/05/02
- [Qemu-arm] [PATCH v2 10/14] target/arm: Implement FP data-processing (3 source) for fp16, Richard Henderson, 2018/05/02
- [Qemu-arm] [PATCH v2 08/14] target/arm: Introduce and use read_fp_hreg, Richard Henderson, 2018/05/02
- [Qemu-arm] [PATCH v2 11/14] target/arm: Implement FCMP for fp16, Richard Henderson, 2018/05/02
- [Qemu-arm] [PATCH v2 13/14] target/arm: Implement FMOV (immediate) for fp16, Richard Henderson, 2018/05/02
- Re: [Qemu-arm] [Qemu-devel] [PATCH v2 00/14] target/arm: Fixups for ARM_FEATURE_V8_FP16, no-reply, 2018/05/03