]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit2e0badfaac234ef3ed6b5397ff208d218cd450fb
tree819b7637e5c28c9e68ec29da9560f4d25f589657
parent70e92c7ee94094d2db8bfe225a8c9b1bde89c26d
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