]> git.proxmox.com Git - mirror_qemu.git/commit - target-i386/translate.c
target-i386: factor gen_op_set_cc_op/tcg_gen_discard_tl around computing flags
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Oct 2012 16:29:21 +0000 (18:29 +0200)
committerRichard Henderson <rth@twiddle.net>
Mon, 18 Feb 2013 23:03:56 +0000 (15:03 -0800)
commitc7b3c87397a3458d3d26499c483e0badaf79849c
treed0babb35a2ab565450cb4515f43fbf8c4fce3354
parent5bdb91b0dd66b7e0fdfc801601c433ad4752aeb0
target-i386: factor gen_op_set_cc_op/tcg_gen_discard_tl around computing flags

Before computing flags we need to store the cc_op to memory.  Move this
to gen_compute_eflags_c and gen_compute_eflags rather than doing it all
over the place.

Alo, after computing the flags in cpu_cc_src we are in EFLAGS mode.
Set s->cc_op and discard cpu_cc_dst in gen_compute_eflags, rather than
doing it all over the place.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target-i386/translate.c