KVM: x86 emulator: Fix nop emulation
authorMohammed Gamal <m.gamal005@gmail.com>
Wed, 4 Aug 2010 11:41:04 +0000 (14:41 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:41 +0000 (10:50 +0200)
commit34698d8c61bd3fc86b2e99c3d1ad9ef140b3eb0d
treeee0db9085fab5767d0c5434bb65b729cf65eb5da
parent2dbd0dd711e6c0ca6a2be9e6d93bbeb339386638
KVM: x86 emulator: Fix nop emulation

If a nop instruction is encountered, we jump directly to the done label.
This skip updating rip. Break from the switch case instead

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