mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 05:25:11 +00:00
target/m68k: fix gen_get_ccr()
As gen_helper_get_ccr() is able to compute CCR from cc_op and flags, we don't need to flush flags before to call it. flush_flags() and get_ccr() use COMPUTE_CCR() to compute flags. get_ccr() computes CCR value, whereas flush_flags update live cc_op and flags. Backports commit 4131c242cc850aaf76e59d4c787d220f07850cf5 from qemu
This commit is contained in:
parent
57d48199a8
commit
3a12e69ad6
|
@ -2548,7 +2548,6 @@ static TCGv gen_get_ccr(DisasContext *s)
|
|||
TCGContext *tcg_ctx = s->uc->tcg_ctx;
|
||||
TCGv dest;
|
||||
|
||||
gen_flush_flags(s);
|
||||
update_cc_op(s);
|
||||
dest = tcg_temp_new(tcg_ctx);
|
||||
gen_helper_get_ccr(tcg_ctx, dest, tcg_ctx->cpu_env);
|
||||
|
|
Loading…
Reference in a new issue