KVM: x86 emulator: Add missing decoder flags for xor instructions
authorMohammed Gamal <m.gamal005@gmail.com>
Tue, 11 May 2010 22:39:22 +0000 (01:39 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:44 +0000 (10:35 +0300)
This adds missing decoder flags for xor instructions (opcodes 0x34 - 0x35)

Signed-off-by: Mohammed Gamal <m.gamal005@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c

index 1b974f80e1e4aba61a2e87d415a283833fb663a8..7a36eec8bab855931d7fd051b7b2f374ed4c1c50 100644 (file)
@@ -130,7 +130,7 @@ static u32 opcode_table[256] = {
        /* 0x30 - 0x37 */
        ByteOp | DstMem | SrcReg | ModRM | Lock, DstMem | SrcReg | ModRM | Lock,
        ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,
-       0, 0, 0, 0,
+       ByteOp | DstAcc | SrcImmByte, DstAcc | SrcImm, 0, 0,
        /* 0x38 - 0x3F */
        ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM,
        ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,