]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Support r6 compact branch emulation
authorJames Hogan <james.hogan@imgtec.com>
Mon, 4 Jul 2016 18:35:12 +0000 (19:35 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Jul 2016 14:09:16 +0000 (16:09 +0200)
commitb3f696f7783ac97ae76b0e7aa700ac7152119687
tree819b7637e5c28c9e68ec29da9560f4d25f589657
parentc366a33be7e0b043f795d560da008b69b9452ef2
MIPS: KVM: Support r6 compact branch emulation

Add support in KVM for emulation of instructions in the forbidden slot
of MIPSr6 compact branches. If we hit an exception on the forbidden
slot, then the branch must not have been taken, which makes calculation
of the resume PC trivial.

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/emulate.c