projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e97e883
)
KVM: x86 emulator: fix 'mov rm,sreg' instruction decoding
author
Wei Yongjun
<yjwei@cn.fujitsu.com>
Tue, 6 Jul 2010 08:52:53 +0000
(16:52 +0800)
committer
Avi Kivity
<avi@redhat.com>
Mon, 2 Aug 2010 03:40:25 +0000
(06:40 +0300)
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>
arch/x86/kvm/emulate.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index 59568ad21ab3b2525f7284d2762f1e7219a6f6d5..8337567a0f44a7a9fc32c7010f81315dfcf321c7 100644
(file)
--- 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 | Src
Reg
| ModRM | Mov, ModRM | DstReg,
+ DstMem | Src
None
| ModRM | Mov, ModRM | DstReg,
ImplicitOps | SrcMem16 | ModRM, Group | Group1A,
/* 0x90 - 0x97 */
DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg, DstReg,