aboutsummaryrefslogtreecommitdiff
path: root/target-i386/cc_helper.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2014-01-10 12:38:40 -0800
committerRichard Henderson <rth@twiddle.net>2014-02-28 08:43:15 -0800
commitd2fe51bda8adf33d07c21e034fdc13a1e1fa4e19 (patch)
tree715be460440a90772c0b9d27fddc7d62d62750be /target-i386/cc_helper.c
parentd844a7b6569fb2b5252773444b18841426e5b906 (diff)
downloadqemu-arm-d2fe51bda8adf33d07c21e034fdc13a1e1fa4e19.tar.gz
target-i386: Fix CC_OP_CLR vs PF
Parity should be set for a zero result. Cc: qemu-stable@nongnu.org Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-i386/cc_helper.c')
-rw-r--r--target-i386/cc_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/cc_helper.c b/target-i386/cc_helper.c
index ee04092b4e..05dd12b5a7 100644
--- a/target-i386/cc_helper.c
+++ b/target-i386/cc_helper.c
@@ -103,7 +103,7 @@ target_ulong helper_cc_compute_all(target_ulong dst, target_ulong src1,
case CC_OP_EFLAGS:
return src1;
case CC_OP_CLR:
- return CC_Z;
+ return CC_Z | CC_P;
case CC_OP_MULB:
return compute_all_mulb(dst, src1);