• Paolo Bonzini's avatar
    target-i386: compute eflags outside rcl/rcr helper · f5847c91
    Paolo Bonzini authored
    Always compute EFLAGS first since it is needed whenever
    the shift is non-zero, i.e. most of the time.  This makes it possible
    to remove some writes of CC_OP_EFLAGS to cpu_cc_op and more importantly
    removes cases where s->cc_op becomes CC_OP_DYNAMIC.  Also, we can
    remove cc_tmp and just modify cc_src from within the helper.
    
    Finally, always follow gen_compute_eflags(cpu_cc_src) by setting s->cc_op
    and discarding cpu_cc_dst.
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
    f5847c91
shift_helper_template.h 2.85 KB