From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH v2 0/8] Simplify byte/word opcode pair decode Date: Thu, 26 Aug 2010 11:36:06 +0300 Message-ID: <1282811774-16534-1-git-send-email-avi@redhat.com> To: Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:36812 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753246Ab0HZIgQ (ORCPT ); Thu, 26 Aug 2010 04:36:16 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7Q8aGJt020719 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 26 Aug 2010 04:36:16 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7Q8aFeb026060 for ; Thu, 26 Aug 2010 04:36:15 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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(-)