projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16286d0
)
KVM: x86 emulator: fix lea to really get the effective address
author
Avi Kivity
<avi@qumranet.com>
Mon, 14 Apr 2008 20:46:37 +0000
(23:46 +0300)
committer
Avi Kivity
<avi@qumranet.com>
Sun, 27 Apr 2008 15:21:35 +0000
(18:21 +0300)
We never hit this, since there is currently no reason to emulate lea.
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86_emulate.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86_emulate.c
b/arch/x86/kvm/x86_emulate.c
index
46ef78f
..
2ca0838
100644
(file)
--- a/
arch/x86/kvm/x86_emulate.c
+++ b/
arch/x86/kvm/x86_emulate.c
@@
-1512,7
+1512,7
@@
special_insn:
case 0x88 ... 0x8b: /* mov */
goto mov;
case 0x8d: /* lea r16/r32, m */
- c->dst.val = c->modrm_
val
;
+ c->dst.val = c->modrm_
ea
;
break;
case 0x8f: /* pop (sole member of Grp1a) */
rc = emulate_grp1a(ctxt, ops);