OSDN Git Service

target-i386: convert gen_compute_eflags_c to TCG
authorRichard Henderson <rth@twiddle.net>
Wed, 23 Jan 2013 21:46:02 +0000 (13:46 -0800)
committerRichard Henderson <rth@twiddle.net>
Mon, 18 Feb 2013 23:03:57 +0000 (15:03 -0800)
commit06847f1f1a7cff71f68dc6416cdd729c01ae2305
tree8f22eb9c492f311f95c7a94a134b4b8034d03a8d
parent8115f117357a63bff84522caac6c3bcadee0a285
target-i386: convert gen_compute_eflags_c to TCG

Do the switch at translation time, converting the helper templates to
TCG opcodes.  In some cases CF can be computed with a single setcond,
though others it may require a little more work.

In the CC_OP_DYNAMIC case, compute the whole EFLAGS, same as for ZF/SF/PF.

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