summaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-04 03:32:00 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-04 03:32:00 +0000
commitfdb0d09d02d8324533bb6d356d34e8bea8c7b3e3 (patch)
tree13dfaf0b220bcbae1aed314db0396d3af12a97da /target-i386
parent222a3336ecbe177da082f9ac20f9614d6d23c721 (diff)
x86 "popcnt" affects flags.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5412 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/translate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c
index 4d1b0c2c7d..681688c207 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -7470,6 +7470,8 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start)
tcg_gen_helper_1_2(helper_popcnt,
cpu_T[0], cpu_T[0], tcg_const_i32(ot));
gen_op_mov_reg_T0(ot, reg);
+
+ s->cc_op = CC_OP_EFLAGS;
break;
case 0x10e ... 0x10f:
/* 3DNow! instructions, ignore prefixes */