summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorAvi Kivity2011-09-13 09:45:42 +0200
committerAvi Kivity2011-09-25 18:52:49 +0200
commitb1ea50b2b63a95aa5a7944b48ba4d0e9b32211d3 (patch)
treebba618fcdb50535ee25e5f06e9a704b5734068e6 /arch/x86/include/asm
parentKVM: x86 emulator: split dst decode to a generic decode_operand() (diff)
downloadkernel-qcow2-linux-b1ea50b2b63a95aa5a7944b48ba4d0e9b32211d3.tar.gz
kernel-qcow2-linux-b1ea50b2b63a95aa5a7944b48ba4d0e9b32211d3.tar.xz
kernel-qcow2-linux-b1ea50b2b63a95aa5a7944b48ba4d0e9b32211d3.zip
KVM: x86 emulator: expand decode flags to 64 bits
Unifiying the operands means not taking advantage of the fact that some operand types can only go into certain operands (for example, DI can only be used by the destination), so we need more bits to hold the operand type. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/kvm_emulate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index 56bac3e3423e..a026507893e9 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -262,7 +262,7 @@ struct x86_emulate_ctxt {
struct operand dst;
bool has_seg_override;
u8 seg_override;
- unsigned int d;
+ u64 d;
int (*execute)(struct x86_emulate_ctxt *ctxt);
int (*check_perm)(struct x86_emulate_ctxt *ctxt);
/* modrm */