KVM: x86 emulator: Add missing decoder flags for 'or' instructions
authorMohammed Gamal <m.gamal005@gmail.com>
Fri, 28 Aug 2009 14:41:44 +0000 (16:41 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:09 +0000 (09:32 +0200)
Add missing decoder flags for or instructions (0xc-0xd).

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

index 0644d3df621a6899094682dded391e37e32f66e9..db0820dfbffe1149005f030e1e169d09295091bb 100644 (file)
@@ -99,7 +99,8 @@ static u32 opcode_table[256] = {
        /* 0x08 - 0x0F */
        ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM,
        ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,
-       0, 0, ImplicitOps | Stack | No64, 0,
+       ByteOp | DstAcc | SrcImm, DstAcc | SrcImm,
+       ImplicitOps | Stack | No64, 0,
        /* 0x10 - 0x17 */
        ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM,
        ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,