KVM: x86 emulator: fix REPZ/REPNZ termination condition
authorAvi Kivity <avi@redhat.com>
Tue, 17 Aug 2010 08:22:17 +0000 (11:22 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:10 +0000 (10:51 +0200)
commit0fa6ccbd281221bc7d46aff82d846e1f4c1985df
treefcb27435dbeb9ee5e0c10b39a30f4aed4a4230e2
parentf6b33fc5046642b669c3197bf08639172e4cffad
KVM: x86 emulator: fix REPZ/REPNZ termination condition

EFLAGS.ZF needs to be checked after each iteration, not before.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c