KVM: x86 emulator: consolidate inc/dec reg decoding
authorAvi Kivity <avi@redhat.com>
Mon, 26 Jul 2010 11:37:40 +0000 (14:37 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:49:48 +0000 (10:49 +0200)
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c

index c5c42e041e482b085a555663aa78a60d12145727..65d896015456d16fbd1f7d7513cff185788cb35e 100644 (file)
@@ -147,10 +147,8 @@ static u32 opcode_table[256] = {
        ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,
        ByteOp | DstAcc | SrcImm, DstAcc | SrcImm,
        0, 0,
-       /* 0x40 - 0x47 */
-       DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg,
-       /* 0x48 - 0x4F */
-       DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg,
+       /* 0x40 - 0x4F */
+       X16(DstReg),
        /* 0x50 - 0x57 */
        SrcReg | Stack, SrcReg | Stack, SrcReg | Stack, SrcReg | Stack,
        SrcReg | Stack, SrcReg | Stack, SrcReg | Stack, SrcReg | Stack,