summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorMohammed Gamal <m.gamal005@gmail.com>2010-05-11 22:39:21 (GMT)
committerAvi Kivity <avi@redhat.com>2010-08-01 07:35:44 (GMT)
commitabc190830f28a5bb678eaccb633de02ed2967d55 (patch)
tree80922835bb6e9f72ab0a56eb93a30771428aa33d /arch/x86
parentdfb507c41d0d12fc69820abb7f040d31fcf015fe (diff)
downloadlinux-fsl-qoriq-abc190830f28a5bb678eaccb633de02ed2967d55.tar.xz
KVM: x86 emulator: Add missing decoder flags for sub instruction
This adds missing decoder flags for sub instructions (opcodes 0x2c - 0x2d) Signed-off-by: Mohammed Gamal <m.gamal005@gmail.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/emulate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index 35dd57c..1b974f8 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,