summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/emulate.c
diff options
context:
space:
mode:
authorAvi Kivity <avi.kivity@gmail.com>2013-01-26 23:56:04 +0200
committerGleb Natapov <gleb@redhat.com>2013-01-27 11:09:38 +0200
commit3f0c3d0bb2bcc4b88b22452a7cf0073ee9a0f1e6 (patch)
treee75abca462df6fbd001c323e9ec453c8c49053f0 /arch/x86/kvm/emulate.c
parent141687869fb904e912568c6b94a6b1fa2114f6ed (diff)
downloadop-kernel-dev-3f0c3d0bb2bcc4b88b22452a7cf0073ee9a0f1e6.zip
op-kernel-dev-3f0c3d0bb2bcc4b88b22452a7cf0073ee9a0f1e6.tar.gz
KVM: x86 emulator: fix test_cc() build failure on i386
'pushq' doesn't exist on i386. Replace with 'push', which should work since the operand is a register. Signed-off-by: Avi Kivity <avi.kivity@gmail.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r--arch/x86/kvm/emulate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index e99fb72..2b11318 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -1013,7 +1013,7 @@ static u8 test_cc(unsigned int condition, unsigned long flags)
void (*fop)(void) = (void *)em_setcc + 4 * (condition & 0xf);
flags = (flags & EFLAGS_MASK) | X86_EFLAGS_IF;
- asm("pushq %[flags]; popf; call *%[fastop]"
+ asm("push %[flags]; popf; call *%[fastop]"
: "=a"(rc) : [fastop]"r"(fop), [flags]"r"(flags));
return rc;
}
OpenPOWER on IntegriCloud