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:
Laurent Vivier 2018-03-06 07:47:23 -05:00 committed by Lioncash
parent 57d48199a8
commit 3a12e69ad6
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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);