target/arm: Fix sqrt_f16 exception raising

We are meant to explicitly pass fpst, not cpu_env.

Backports commit 905edee9101c54cda5b72286b7f7607cf1c3c4d1 from qemu
This commit is contained in:
Alex Bennée 2018-05-15 22:29:51 -04:00 committed by Lioncash
parent f8e1f71df9
commit 070276faf6
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -5069,7 +5069,8 @@ static void handle_fp_1src_half(DisasContext *s, int opcode, int rd, int rn)
tcg_gen_xori_i32(tcg_ctx, tcg_res, tcg_op, 0x8000);
break;
case 0x3: /* FSQRT */
gen_helper_sqrt_f16(tcg_ctx, tcg_res, tcg_op, tcg_ctx->cpu_env);
fpst = get_fpstatus_ptr(tcg_ctx, true);
gen_helper_sqrt_f16(tcg_ctx, tcg_res, tcg_op, fpst);
break;
case 0x8: /* FRINTN */
case 0x9: /* FRINTP */