mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 20:50:59 +00:00
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:
parent
f8e1f71df9
commit
070276faf6
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue