diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2010-07-06 16:52:53 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-02 06:40:25 +0300 |
commit | b16b2b7bb5a78afceb7fe22f2a04476cd70182b7 (patch) | |
tree | 1b5352e4c8fa6336128ee1e9b979dc4d1e239614 /arch/x86/kvm | |
parent | e97e883f8bfbe02cfc2bfff45e68921dfe590c7e (diff) | |
download | linux-b16b2b7bb5a78afceb7fe22f2a04476cd70182b7.tar.gz linux-b16b2b7bb5a78afceb7fe22f2a04476cd70182b7.tar.bz2 linux-b16b2b7bb5a78afceb7fe22f2a04476cd70182b7.zip |
KVM: x86 emulator: fix 'mov rm,sreg' instruction decoding
The source operand of 'mov rm,sreg' is segment register, not
general-purpose register, so remove SrcReg from decoding.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | 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 59568ad21ab3..8337567a0f44 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -169,7 +169,7 @@ static u32 opcode_table[256] = { /* 0x88 - 0x8F */ ByteOp | DstMem | SrcReg | ModRM | Mov, DstMem | SrcReg | ModRM | Mov, ByteOp | DstReg | SrcMem | ModRM | Mov, DstReg | SrcMem | ModRM | Mov, - DstMem | SrcReg | ModRM | Mov, ModRM | DstReg, + DstMem | SrcNone | ModRM | Mov, ModRM | DstReg, ImplicitOps | SrcMem16 | ModRM, Group | Group1A, /* 0x90 - 0x97 */ DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, |