summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-04-22 15:12:50 +0300
committerAvi Kivity <avi@redhat.com>2012-04-24 17:16:17 +0300
commit38e8a2ddc9ada5dd1f2def95bebb733bf619bbef (patch)
tree689e6596e48690f77ad0b8c6f30ff5c20aef8152 /arch/x86
parent413837714232b3a4c0705e915d8af75ad521d083 (diff)
downloadop-kernel-dev-38e8a2ddc9ada5dd1f2def95bebb733bf619bbef.zip
op-kernel-dev-38e8a2ddc9ada5dd1f2def95bebb733bf619bbef.tar.gz
KVM: x86 emulator: fix asm constraint in flush_pending_x87_faults
'bool' wants 8-bit registers. Reported-by: Takuya Yoshikawa <takuya.yoshikawa@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-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 d5729a9..0d151e2 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -4123,7 +4123,7 @@ static int flush_pending_x87_faults(struct x86_emulate_ctxt *ctxt)
"jmp 2b \n\t"
".popsection \n\t"
_ASM_EXTABLE(1b, 3b)
- : [fault]"+rm"(fault));
+ : [fault]"+qm"(fault));
ctxt->ops->put_fpu(ctxt);
if (unlikely(fault))
OpenPOWER on IntegriCloud