target-i386: do not compute eflags multiple times consecutively
authorRichard Henderson <rth@twiddle.net>
Wed, 23 Jan 2013 21:03:26 +0000 (13:03 -0800)
committerRichard Henderson <rth@twiddle.net>
Mon, 18 Feb 2013 23:03:56 +0000 (15:03 -0800)
commitd229edce1c58e6bb13d386bef4c31fc2e3850cb6
treee9380b660361499fa1814aed60bd061a6a5402e9
parent1608ecca95188dcf4f78072be48f41dbe2062b25
target-i386: do not compute eflags multiple times consecutively

After calling gen_compute_eflags, leave the computed value in cc_reg_src
and set cc_op to CC_OP_EFLAGS.  The next few patches will remove anyway
most calls to gen_compute_eflags.

As a result of this change it is more natural to remove the register
argument from gen_compute_eflags and change all the callers.

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