KVM: x86 emulator: add Src2 decode set
authorGuillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
Thu, 4 Dec 2008 13:26:42 +0000 (14:26 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:42 +0000 (16:55 +0200)
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>
arch/x86/include/asm/kvm_x86_emulate.h
arch/x86/kvm/x86_emulate.c

index 16a0026..6a15973 100644 (file)
@@ -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;
Simple merge