KVM: x86 emulator: fix asm constraint in flush_pending_x87_faults
authorAvi Kivity <avi@redhat.com>
Sun, 22 Apr 2012 12:12:50 +0000 (15:12 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Apr 2012 14:16:17 +0000 (17:16 +0300)
'bool' wants 8-bit registers.

Reported-by: Takuya Yoshikawa <takuya.yoshikawa@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c

index d5729a91d08db7769f4bcb77a0030d663f6e7325..0d151e232480296fe31846d024827238f6d380f9 100644 (file)
@@ -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))
This page took 0.032271 seconds and 5 git commands to generate.