]> git.proxmox.com Git - qemu.git/commit
target-i386: do not call helper to compute ZF/SF
authorRichard Henderson <rth@twiddle.net>
Wed, 23 Jan 2013 21:33:59 +0000 (13:33 -0800)
committerRichard Henderson <rth@twiddle.net>
Mon, 18 Feb 2013 23:03:57 +0000 (15:03 -0800)
commit086c40778485f9a52d41a66fd4ef0d8723a2ac0a
tree3f77bb7822b3cc5027b9f849ba10fecd9512d9d9
parentb666265b2071e4288110f6553b598efe00246d06
target-i386: do not call helper to compute ZF/SF

ZF, SF and PF can always be computed from CC_DST except in the
CC_OP_EFLAGS case (and CC_OP_DYNAMIC, which just resolves to CC_OP_EFLAGS
in gen_compute_eflags).  Use setcond to compute ZF and SF.

We could also use a table lookup to compute 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