diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2010-07-06 04:49:05 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 23:40:22 -0400 |
commit | a5046e6c7d97d6574ffe6367311ea0b0de56aa58 (patch) | |
tree | 8895223602eb3fcf0ee9d692142f68a0a515d012 /arch/x86/kvm | |
parent | b79b93f92cb3b66b89d75525fdfd2454b1e1f446 (diff) |
KVM: x86 emulator: fix 'mov sreg,rm16' instruction decoding
Memory reads for 'mov sreg,rm16' should be 16 bits only.
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 e8bdddc4509e..d842a7d2bc64 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -170,7 +170,7 @@ static u32 opcode_table[256] = { | |||
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 | SrcReg | ModRM | Mov, ModRM | DstReg, |
173 | ImplicitOps | SrcMem | 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, |
176 | /* 0x98 - 0x9F */ | 176 | /* 0x98 - 0x9F */ |