]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: x86 emulator: allow pop from mmio
authorAvi Kivity <avi@redhat.com>
Thu, 27 Nov 2008 16:00:28 +0000 (18:00 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:04 +0000 (16:55 +0200)
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86_emulate.c

index 2555762f4b42e3267ea35b1d89be71aa7d2e4e6f..70242f5f0964ab0744fd3ba3e57af84a98b5b2ae 100644 (file)
@@ -1063,9 +1063,9 @@ static int emulate_pop(struct x86_emulate_ctxt *ctxt,
        struct decode_cache *c = &ctxt->decode;
        int rc;
 
-       rc = ops->read_std(register_address(c, ss_base(ctxt),
-                                           c->regs[VCPU_REGS_RSP]),
-                          &c->src.val, c->src.bytes, ctxt->vcpu);
+       rc = ops->read_emulated(register_address(c, ss_base(ctxt),
+                                                c->regs[VCPU_REGS_RSP]),
+                               &c->src.val, c->src.bytes, ctxt->vcpu);
        if (rc != 0)
                return rc;