diff options
author | Guillaume Thouvenin <guillaume.thouvenin@ext.bull.net> | 2008-09-22 18:08:06 +0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 17:51:39 +0300 |
commit | 2786b014ec893c301ea52ef9962e7cc60f89f9b3 (patch) | |
tree | 61838d3d8494ca9ed3cc9bfccb93c3f9d5b87399 | |
parent | 6a94cb73064c952255336cc57731904174b2c58f (diff) | |
download | linux-2786b014ec893c301ea52ef9962e7cc60f89f9b3.tar.xz |
KVM: x86 emulator: consolidate push reg
This patch consolidate the emulation of push reg instruction.
Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@bull.net>
Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/x86/kvm/x86_emulate.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c index ea051173b0da..a391e213fe61 100644 --- a/arch/x86/kvm/x86_emulate.c +++ b/arch/x86/kvm/x86_emulate.c @@ -1415,13 +1415,7 @@ special_insn: emulate_1op("dec", c->dst, ctxt->eflags); break; case 0x50 ... 0x57: /* push reg */ - c->dst.type = OP_MEM; - c->dst.bytes = c->op_bytes; - c->dst.val = c->src.val; - register_address_increment(c, &c->regs[VCPU_REGS_RSP], - -c->op_bytes); - c->dst.ptr = (void *) register_address( - c, ss_base(ctxt), c->regs[VCPU_REGS_RSP]); + emulate_push(ctxt); break; case 0x58 ... 0x5f: /* pop reg */ pop_instruction: |