aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-04-28 12:15:25 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 03:35:29 -0400
commitb8a98945ea5b735e083eaf92906aa0ff9ece92e8 (patch)
tree3eefe44ffc5035f0ed281ede1f63c866a67b28c4 /arch/x86
parentf0c13ef1a8f31be08bf1b1244fe4565f11f4b009 (diff)
KVM: x86 emulator: cleanup nop emulation
Make it more explicit what we are checking for. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/emulate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index a99d49cc8934..03a72912d7b9 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -2799,8 +2799,8 @@ special_insn:
2799 goto done; 2799 goto done;
2800 break; 2800 break;
2801 case 0x90: /* nop / xchg r8,rax */ 2801 case 0x90: /* nop / xchg r8,rax */
2802 if (!(c->rex_prefix & 1)) { /* nop */ 2802 if (c->dst.ptr == (unsigned long *)&c->regs[VCPU_REGS_RAX]) {
2803 c->dst.type = OP_NONE; 2803 c->dst.type = OP_NONE; /* nop */
2804 break; 2804 break;
2805 } 2805 }
2806 case 0x91 ... 0x97: /* xchg reg,rax */ 2806 case 0x91 ... 0x97: /* xchg reg,rax */