KVM: x86 emulator: Add adc and sbb missing decoder flags
authorMohammed Gamal <m.gamal005@gmail.com>
Tue, 18 Aug 2009 22:26:28 +0000 (01:26 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 07:46:51 +0000 (10:46 +0300)
Add missing decoder flags for adc and sbb instructions
(opcodes 0x14-0x15, 0x1c-0x1d)

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

index 2eb807a7b620eaa6c1b55e973c4ea1c8bcfe2bce..1be5cd640e93f2f71b92829fbba082b37bdabe62 100644 (file)
@@ -100,11 +100,11 @@ static u32 opcode_table[256] = {
        /* 0x10 - 0x17 */
        ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM,
        ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,
-       0, 0, 0, 0,
+       ByteOp | DstAcc | SrcImm, DstAcc | SrcImm, 0, 0,
        /* 0x18 - 0x1F */
        ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM,
        ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,
-       0, 0, 0, 0,
+       ByteOp | DstAcc | SrcImm, DstAcc | SrcImm, 0, 0,
        /* 0x20 - 0x27 */
        ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM,
        ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,