diff options
author | Avi Kivity <avi@redhat.com> | 2008-11-29 20:36:13 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 16:55:05 +0200 |
commit | 2b48cc75b21431037d6f902b9d583b1aff198490 (patch) | |
tree | 94701bb39071951a8683a0f462d59a75e343caf5 /arch/x86/kvm/x86_emulate.c | |
parent | cf5de4f886116871c2ae2eee53524edd741a68ae (diff) | |
download | linux-2b48cc75b21431037d6f902b9d583b1aff198490.tar.bz2 |
KVM: x86 emulator: fix popf emulation
Set operand type and size to get correct writeback behavior.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86_emulate.c')
-rw-r--r-- | arch/x86/kvm/x86_emulate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c index 72ae86b1b131..e8c87ccfe310 100644 --- a/arch/x86/kvm/x86_emulate.c +++ b/arch/x86/kvm/x86_emulate.c @@ -1552,7 +1552,9 @@ special_insn: emulate_push(ctxt); break; case 0x9d: /* popf */ + c->dst.type = OP_REG; c->dst.ptr = (unsigned long *) &ctxt->eflags; + c->dst.bytes = c->op_bytes; goto pop_instruction; case 0xa0 ... 0xa1: /* mov */ c->dst.ptr = (unsigned long *)&c->regs[VCPU_REGS_RAX]; |