target-i386: introduce CCPrepare
commitbec93d7283b635aabaf0bbff67b6da7fc99e020a
authorRichard Henderson <rth@twiddle.net>
Wed, 23 Jan 2013 22:21:52 +0000 (23 14:21 -0800)
committerRichard Henderson <rth@twiddle.net>
Mon, 18 Feb 2013 23:03:57 +0000 (18 15:03 -0800)
treeed8c0282be1ffa46aad5715c2e84af17dda342e7
parentc365395e9bd2b3bcac48ef562c187ea6ab9820ad
target-i386: introduce CCPrepare

Introduce a struct that describes how to build a *cond operation
that checks for a given x86 condition code.  For now, just change
gen_compute_eflags_* to return the new struct, generate code for
the CCPrepare struct, and go on as before.

[rth: Use ctz with the proper width rather than ffs.]

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