KVM: x86 emulator: simplify xchg decode tables
authorAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 09:39:53 +0000 (12:39 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:33 +0000 (10:50 +0200)
Use X8() to avoid repetition.

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

index 5f45f66ed2773848c3ab16ec20f0b3bcee3ff245..c7176df9ced51ad3039997f50ae44e414571c42e 100644 (file)
@@ -2147,7 +2147,7 @@ static struct opcode opcode_table[256] = {
        D(DstMem | SrcNone | ModRM | Mov), D(ModRM | DstReg),
        D(ImplicitOps | SrcMem16 | ModRM), G(0, group1A),
        /* 0x90 - 0x97 */
-       D(DstReg), D(DstReg), D(DstReg), D(DstReg),     D(DstReg), D(DstReg), D(DstReg), D(DstReg),
+       X8(D(DstReg)),
        /* 0x98 - 0x9F */
        N, N, D(SrcImmFAddr | No64), N,
        D(ImplicitOps | Stack), D(ImplicitOps | Stack), N, N,