KVM: x86 emulator: consolidate push/pop reg decoding
authorAvi Kivity <avi@redhat.com>
Mon, 26 Jul 2010 11:37:41 +0000 (14:37 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:49:49 +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 65d896015456d16fbd1f7d7513cff185788cb35e..68e5b73d22ab73dd29a104a1b3bf5a3a7480b503 100644 (file)
@@ -150,11 +150,9 @@ static u32 opcode_table[256] = {
        /* 0x40 - 0x4F */
        X16(DstReg),
        /* 0x50 - 0x57 */
-       SrcReg | Stack, SrcReg | Stack, SrcReg | Stack, SrcReg | Stack,
-       SrcReg | Stack, SrcReg | Stack, SrcReg | Stack, SrcReg | Stack,
+       X8(SrcReg | Stack),
        /* 0x58 - 0x5F */
-       DstReg | Stack, DstReg | Stack, DstReg | Stack, DstReg | Stack,
-       DstReg | Stack, DstReg | Stack, DstReg | Stack, DstReg | Stack,
+       X8(DstReg | Stack),
        /* 0x60 - 0x67 */
        ImplicitOps | Stack | No64, ImplicitOps | Stack | No64,
        0, DstReg | SrcMem32 | ModRM | Mov /* movsxd (x86/64) */ ,