]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: x86 emulator: Add decode entries for 0x04 and 0x05 opcodes (add acc, imm)
authorGuillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
Mon, 20 Oct 2008 11:11:58 +0000 (13:11 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:51:46 +0000 (16:51 +0200)
Add decode entries for 0x04 and 0x05 (ADD) opcodes, execution is already
implemented.

Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86_emulate.c

index a391e213fe612dd55fd23efd0aa4a0ebf3eac579..57d7cc45be441b3d7f35abea32822daf9e23f02c 100644 (file)
@@ -80,7 +80,7 @@ static u16 opcode_table[256] = {
        /* 0x00 - 0x07 */
        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,
        /* 0x08 - 0x0F */
        ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM,
        ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,