Skip to content

Commit

Permalink
KVM: x86 emulator: fix asm constraint in flush_pending_x87_faults
Browse files Browse the repository at this point in the history
'bool' wants 8-bit registers.

Reported-by: Takuya Yoshikawa <takuya.yoshikawa@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Avi Kivity committed Apr 24, 2012
1 parent 4138377 commit 38e8a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 38e8a2d

Please sign in to comment.