KVM: x86 emulator: Add missing decoder flags for sub instruction
authorMohammed Gamal <m.gamal005@gmail.com>
Tue, 11 May 2010 22:39:21 +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 sub instructions (opcodes 0x2c - 0x2d)

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

index 35dd57c5a7fd948699bb12f1fe290004ac1c2de2..1b974f80e1e4aba61a2e87d415a283833fb663a8 100644 (file)
@@ -126,7 +126,7 @@ static u32 opcode_table[256] = {
        /* 0x28 - 0x2F */
        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,
        /* 0x30 - 0x37 */
        ByteOp | DstMem | SrcReg | ModRM | Lock, DstMem | SrcReg | ModRM | Lock,
        ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,