KVM: x86 emulator: change invlpg emulation to use src.mem.addr
authorAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 12:19:22 +0000 (15:19 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:39 +0000 (10:50 +0200)
Instead of using modrm_ea, which will soon be gone.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c

index b8aa667..eda6941 100644 (file)
@@ -3206,7 +3206,7 @@ twobyte_insn:
                        emulate_ud(ctxt);
                        goto done;
                case 7: /* invlpg*/
-                       emulate_invlpg(ctxt->vcpu, c->modrm_ea);
+                       emulate_invlpg(ctxt->vcpu, c->src.addr.mem);
                        /* Disable writeback. */
                        c->dst.type = OP_NONE;
                        break;