kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] x86 emulator: Add missing decoder flags for sub instruction
@ 2010-05-11 22:39 Mohammed Gamal
  2010-05-11 22:39 ` [PATCH 2/2] x86 emulator: Add missing decoder flags for xor instructions Mohammed Gamal
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mohammed Gamal @ 2010-05-11 22:39 UTC (permalink / raw)
  To: avi; +Cc: mtosatti, kvm, Mohammed Gamal

This adds missing decoder flags for sub instructions (opcodes 0x2c - 0x2d)

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

diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index be5e78d..5c523ed 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -126,7 +126,7 @@ static u32 opcode_table[256] = {
 	/* 0x28 - 0x2F */
 	ByteOp | DstMem | SrcReg | ModRM | Lock, DstMem | SrcReg | ModRM | Lock,
 	ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,
-	0, 0, 0, 0,
+	ByteOp | DstAcc | SrcImmByte, DstAcc | SrcImm, 0, 0,
 	/* 0x30 - 0x37 */
 	ByteOp | DstMem | SrcReg | ModRM | Lock, DstMem | SrcReg | ModRM | Lock,
 	ByteOp | DstReg | SrcMem | ModRM, DstReg | SrcMem | ModRM,
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-13 20:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-11 22:39 [PATCH 1/2] x86 emulator: Add missing decoder flags for sub instruction Mohammed Gamal
2010-05-11 22:39 ` [PATCH 2/2] x86 emulator: Add missing decoder flags for xor instructions Mohammed Gamal
2010-05-12  9:37 ` [PATCH 1/2] x86 emulator: Add missing decoder flags for sub instruction Avi Kivity
2010-05-13 18:50 ` Marcelo Tosatti
2010-05-13 20:26   ` Mohammed Gamal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).