[PATCH v2 0/8] Simplify byte/word opcode pair decode

Avi Kivity
2010-08-26T08:36:16Z

Many x86 instructions come in pairs - byte and word variants where bit 0
of the opcode determines operand size. Use this to simplify the decode
tables.

Rebased, plus:

Avi Kivity (8):
KVM: x86 emulator: support byte/word opcode pairs
KVM: x86 emulator: simplify ALU block (opcodes 00-3F) decode flags
- fix opcode 25 (AND r/m, imm) to accept a full immediate, not 8-bit
KVM: x86 emulator: simplify string instruction decode flags
KVM: x86 emulator: simplify instruction decode flags for opcodes
80-8F
KVM: x86 emulator: simplify instruction decode flags for opcodes
A0-AF
KVM: x86 emulator: simplify instruction decode flags for opcodes
C0-DF
KVM: x86 emulator: simplify instruction decode flags for opcodes
E0-FF
KVM: x86 emulator: simplify instruction decode flags for opcodes 0F
00-FF

arch/x86/kvm/emulate.c | 89 ++++++++++++++++++++++--------------------------
1 files changed, 41 insertions(+), 48 deletions(-)