Commit 781d0edc authored by Avi Kivity's avatar Avi Kivity

KVM: x86 emulator: allow pop from mmio

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent faa5a3ae
...@@ -1063,9 +1063,9 @@ static int emulate_pop(struct x86_emulate_ctxt *ctxt, ...@@ -1063,9 +1063,9 @@ static int emulate_pop(struct x86_emulate_ctxt *ctxt,
struct decode_cache *c = &ctxt->decode; struct decode_cache *c = &ctxt->decode;
int rc; int rc;
rc = ops->read_std(register_address(c, ss_base(ctxt), rc = ops->read_emulated(register_address(c, ss_base(ctxt),
c->regs[VCPU_REGS_RSP]), c->regs[VCPU_REGS_RSP]),
&c->src.val, c->src.bytes, ctxt->vcpu); &c->src.val, c->src.bytes, ctxt->vcpu);
if (rc != 0) if (rc != 0)
return rc; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment