diff options
author | Avi Kivity <avi@qumranet.com> | 2008-04-14 16:46:37 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 11:21:35 -0400 |
commit | f9b7aab35cc6c3542203354d9fc4ec8572074abc (patch) | |
tree | ab8164dcfa5d49a4db66581af247a4140beae35a /arch/x86/kvm | |
parent | 16286d082d99cb41e16938fa6ba84604229f4b77 (diff) |
KVM: x86 emulator: fix lea to really get the effective address
We never hit this, since there is currently no reason to emulate lea.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/x86_emulate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c index 46ef78f8bb35..2ca08386f993 100644 --- a/arch/x86/kvm/x86_emulate.c +++ b/arch/x86/kvm/x86_emulate.c | |||
@@ -1512,7 +1512,7 @@ special_insn: | |||
1512 | case 0x88 ... 0x8b: /* mov */ | 1512 | case 0x88 ... 0x8b: /* mov */ |
1513 | goto mov; | 1513 | goto mov; |
1514 | case 0x8d: /* lea r16/r32, m */ | 1514 | case 0x8d: /* lea r16/r32, m */ |
1515 | c->dst.val = c->modrm_val; | 1515 | c->dst.val = c->modrm_ea; |
1516 | break; | 1516 | break; |
1517 | case 0x8f: /* pop (sole member of Grp1a) */ | 1517 | case 0x8f: /* pop (sole member of Grp1a) */ |
1518 | rc = emulate_grp1a(ctxt, ops); | 1518 | rc = emulate_grp1a(ctxt, ops); |