diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2010-07-06 04:52:53 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 23:40:25 -0400 |
commit | b16b2b7bb5a78afceb7fe22f2a04476cd70182b7 (patch) | |
tree | 1b5352e4c8fa6336128ee1e9b979dc4d1e239614 /arch/x86/kvm/emulate.c | |
parent | e97e883f8bfbe02cfc2bfff45e68921dfe590c7e (diff) |
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/emulate.c')
-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] = { | |||
169 | /* 0x88 - 0x8F */ | 169 | /* 0x88 - 0x8F */ |
170 | ByteOp | DstMem | SrcReg | ModRM | Mov, DstMem | SrcReg | ModRM | Mov, | 170 | ByteOp | DstMem | SrcReg | ModRM | Mov, DstMem | SrcReg | ModRM | Mov, |
171 | ByteOp | DstReg | SrcMem | ModRM | Mov, DstReg | SrcMem | ModRM | Mov, | 171 | ByteOp | DstReg | SrcMem | ModRM | Mov, DstReg | SrcMem | ModRM | Mov, |
172 | DstMem | SrcReg | ModRM | Mov, ModRM | DstReg, | 172 | DstMem | SrcNone | ModRM | Mov, ModRM | DstReg, |
173 | ImplicitOps | SrcMem16 | ModRM, Group | Group1A, | 173 | ImplicitOps | SrcMem16 | ModRM, Group | Group1A, |
174 | /* 0x90 - 0x97 */ | 174 | /* 0x90 - 0x97 */ |
175 | DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, | 175 | DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, |