]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Fix fpu.S misassembly with r6
authorJames Hogan <james.hogan@imgtec.com>
Mon, 4 Jul 2016 18:35:09 +0000 (19:35 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Jul 2016 14:09:11 +0000 (16:09 +0200)
commit26a06c187a0b6fb93c7da796480a8c8b66174587
treefec07832737476528eef43c226f7489725db9593
parent697356b0a10607108855e1182218af0918e6bcd1
MIPS: KVM: Fix fpu.S misassembly with r6

__kvm_save_fpu and __kvm_restore_fpu use .set mips64r2 so that they can
access the odd FPU registers as well as the even, however this causes
misassembly of the return instruction on MIPSr6.

Fix by replacing .set mips64r2 with .set fp=64, which doesn't change the
architecture revision.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim KrÄmář <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/fpu.S