KVM: x86 emulator: simplify instruction decode flags for opcodes E0-FF
authorAvi Kivity <avi@redhat.com>
Thu, 26 Aug 2010 08:56:12 +0000 (11:56 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:40 +0000 (10:51 +0200)
Use the new byte/word dual opcode decode.

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

index 02566c1283f692c571ae96e6453bfbe460705293..b43572afce3c1478fa04f7b03202860d6134119f 100644 (file)
@@ -2479,13 +2479,11 @@ static struct opcode opcode_table[256] = {
        N, N, N, N, N, N, N, N,
        /* 0xE0 - 0xE7 */
        X4(D(SrcImmByte)),
-       D(ByteOp | SrcImmUByte | DstAcc), D(SrcImmUByte | DstAcc),
-       D(ByteOp | SrcAcc | DstImmUByte), D(SrcAcc | DstImmUByte),
+       D2bv(SrcImmUByte | DstAcc), D2bv(SrcAcc | DstImmUByte),
        /* 0xE8 - 0xEF */
        D(SrcImm | Stack), D(SrcImm | ImplicitOps),
        D(SrcImmFAddr | No64), D(SrcImmByte | ImplicitOps),
-       D(SrcNone | ByteOp | DstAcc), D(SrcNone | DstAcc),
-       D(ByteOp | SrcAcc | ImplicitOps), D(SrcAcc | ImplicitOps),
+       D2bv(SrcNone | DstAcc), D2bv(SrcAcc | ImplicitOps),
        /* 0xF0 - 0xF7 */
        N, N, N, N,
        D(ImplicitOps | Priv), D(ImplicitOps), G(ByteOp, group3), G(0, group3),