summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_x86_emulate.h
diff options
context:
space:
mode:
authorGuillaume Thouvenin2008-12-04 14:26:42 +0100
committerAvi Kivity2008-12-31 15:55:42 +0100
commit0dc8d10f7d848b63c8d32cf6fd31ba7def792ac9 (patch)
tree82c1a42032974305b3ebca01891c07a2a148287c /arch/x86/include/asm/kvm_x86_emulate.h
parentKVM: x86 emulator: Extend the opcode descriptor (diff)
downloadkernel-qcow2-linux-0dc8d10f7d848b63c8d32cf6fd31ba7def792ac9.tar.gz
kernel-qcow2-linux-0dc8d10f7d848b63c8d32cf6fd31ba7def792ac9.tar.xz
kernel-qcow2-linux-0dc8d10f7d848b63c8d32cf6fd31ba7def792ac9.zip
KVM: x86 emulator: add Src2 decode set
Instruction like shld has three operands, so we need to add a Src2 decode set. We start with Src2None, Src2CL, and Src2ImmByte, Src2One to support shld/shrd and we will expand it later. Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@ext.bull.net> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_x86_emulate.h')
-rw-r--r--arch/x86/include/asm/kvm_x86_emulate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_x86_emulate.h b/arch/x86/include/asm/kvm_x86_emulate.h
index 16a002655f31..6a159732881a 100644
--- a/arch/x86/include/asm/kvm_x86_emulate.h
+++ b/arch/x86/include/asm/kvm_x86_emulate.h
@@ -123,6 +123,7 @@ struct decode_cache {
u8 ad_bytes;
u8 rex_prefix;
struct operand src;
+ struct operand src2;
struct operand dst;
bool has_seg_override;
u8 seg_override;