mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 02:15:37 +00:00
target/arm: Fix typo in do_sat_addsub_64
Used the wrong temporary in the computation of subtractive overflow. Backports commit 7a31e0c6c68baffab0867bdd92b8744568b1d3ba from qemu
This commit is contained in:
parent
46fd2c485a
commit
eccda3afcc
|
@ -1725,7 +1725,7 @@ static void do_sat_addsub_64(DisasContext *s, TCGv_i64 reg, TCGv_i64 val, bool u
|
|||
/* Detect signed overflow for subtraction. */
|
||||
tcg_gen_xor_i64(tcg_ctx, t0, reg, val);
|
||||
tcg_gen_sub_i64(tcg_ctx, t1, reg, val);
|
||||
tcg_gen_xor_i64(tcg_ctx, reg, reg, t0);
|
||||
tcg_gen_xor_i64(tcg_ctx, reg, reg, t1);
|
||||
tcg_gen_and_i64(tcg_ctx, t0, t0, reg);
|
||||
|
||||
/* Bound the result. */
|
||||
|
|
Loading…
Reference in a new issue