From patchwork Tue Aug 18 22:26:28 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammed Gamal X-Patchwork-Id: 42438 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7IMRhxK002493 for ; Tue, 18 Aug 2009 22:27:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752041AbZHRW0l (ORCPT ); Tue, 18 Aug 2009 18:26:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752040AbZHRW0k (ORCPT ); Tue, 18 Aug 2009 18:26:40 -0400 Received: from mail-ew0-f207.google.com ([209.85.219.207]:40033 "EHLO mail-ew0-f207.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752035AbZHRW0k (ORCPT ); Tue, 18 Aug 2009 18:26:40 -0400 Received: by ewy3 with SMTP id 3so1980031ewy.18 for ; Tue, 18 Aug 2009 15:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=eO8fyaOXja6k2+MRs+K07O4+OjsWBW8fQbEl9OWYI2I=; b=xyPL/KQtspUIRWWCx38hLDLluiFGaebQOecJ29iFii7qu21DtcTly0yjDO+nTxTJaE rM00c/lJoRhEr43cnXC6wo7H2c4JEdRS/UKJORIQcOvgezJavj5+dARnmppKlHGSDois bSkwVNu2xv/JMLyyEUoS5rNDPTUiCmONvJGwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=etj+ZTGuiVybrYilbQEkeHeBZqSXHRFFbpu89EtjZt6pn6+y3qYufg0ZUvV2Adsixm jfMSZDN988MpDiN4ebrSCWWCEgJvlwmiK2aPbB38i+tFhxxzlAJgRAN6I9f8cdC/cmxy wfYlf40/oH3CP1EG1S1mQOYb6pXnUgqNa1Jhw= Received: by 10.210.36.10 with SMTP id j10mr2374510ebj.9.1250634400409; Tue, 18 Aug 2009 15:26:40 -0700 (PDT) Received: from localhost.localdomain ([188.50.64.39]) by mx.google.com with ESMTPS id 7sm1305285eyb.50.2009.08.18.15.26.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 Aug 2009 15:26:38 -0700 (PDT) From: Mohammed Gamal To: avi@redhat.com Cc: kvm@vger.kernel.org, Mohammed Gamal Subject: [PATCH] Add adc and sbb missing decoder flags Date: Wed, 19 Aug 2009 01:26:28 +0300 Message-Id: <1250634388-22493-1-git-send-email-m.gamal005@gmail.com> X-Mailer: git-send-email 1.6.0.4 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Add missing decoder flags for adc and sbb instructions (opcodes 0x14-0x15, 0x1c-0x1d) [Rebased to upstream tree] Signed-off-by: Mohammed Gamal --- arch/x86/kvm/emulate.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 2eb807a..1be5cd6 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -100,11 +100,11 @@ static u32 opcode_table[256] = { /* 0x10 - 0x17 */ ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM, ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM, - 0, 0, 0, 0, + ByteOp | DstAcc | SrcImm, DstAcc | SrcImm, 0, 0, /* 0x18 - 0x1F */ ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM, ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM, - 0, 0, 0, 0, + ByteOp | DstAcc | SrcImm, DstAcc | SrcImm, 0, 0, /* 0x20 - 0x27 */ ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM, ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,