diff mbox

Add adc and sbb missing decoder flags

Message ID 1250600392-3243-1-git-send-email-m.gamal005@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mohammed Gamal Aug. 18, 2009, 12:59 p.m. UTC
Add missing decoder flags for adc and sbb instructions
(opcodes 0x14-0x15, 0x1c-0x1d)

Signed-off-by: Mohammed Gamal <m.gamal005@gmail.com>
---
 arch/x86/kvm/emulate.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

Comments

Avi Kivity Aug. 18, 2009, 2:41 p.m. UTC | #1
On 08/18/2009 03:59 PM, Mohammed Gamal wrote:
> Add missing decoder flags for adc and sbb instructions
> (opcodes 0x14-0x15, 0x1c-0x1d)
>    

This depends on the previous patch, so I'll just wait until that is ready.
Mohammed Gamal Aug. 18, 2009, 7:41 p.m. UTC | #2
On Tue, Aug 18, 2009 at 5:41 PM, Avi Kivity<avi@redhat.com> wrote:
> On 08/18/2009 03:59 PM, Mohammed Gamal wrote:
>>
>> Add missing decoder flags for adc and sbb instructions
>> (opcodes 0x14-0x15, 0x1c-0x1d)
>>
>
> This depends on the previous patch, so I'll just wait until that is ready.
>
I'll rebase this on the current tree and resend it.

> --
> error compiling committee.c: too many arguments to function
>
>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index 438d423..af58e54 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -101,11 +101,13 @@  static u32 opcode_table[256] = {
 	/* 0x10 - 0x17 */
 	ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM,
 	ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,
-	0, 0, ImplicitOps | Stack, ImplicitOps | Stack,
+	ByteOp | DstAcc | SrcImm, DstAcc | SrcImm, 
+	ImplicitOps | Stack, ImplicitOps | Stack,
 	/* 0x18 - 0x1F */
 	ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM,
 	ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,
-	0, 0, ImplicitOps | Stack, ImplicitOps | Stack,
+	ByteOp | DstAcc | SrcImm, DstAcc | SrcImm,
+	ImplicitOps | Stack, ImplicitOps | Stack,
 	/* 0x20 - 0x27 */
 	ByteOp | DstMem | SrcReg | ModRM, DstMem | SrcReg | ModRM,
 	ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,