From: Avi Kivity Date: Sun, 22 Apr 2012 12:12:50 +0000 (+0300) Subject: KVM: x86 emulator: fix asm constraint in flush_pending_x87_faults X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=38e8a2ddc9ada5dd1f2def95bebb733bf619bbef;p=linux-beck.git KVM: x86 emulator: fix asm constraint in flush_pending_x87_faults 'bool' wants 8-bit registers. Reported-by: Takuya Yoshikawa Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index d5729a91d08d..0d151e232480 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))