]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM/MIPS32: Privileged instruction/target branch emulation.
authorSanjay Lal <sanjayl@kymasys.com>
Thu, 22 Nov 2012 02:34:04 +0000 (18:34 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 13 Mar 2013 18:46:17 +0000 (19:46 +0100)
commita400a9ae30d134b37995c385c0952d3c927ce6f9
tree4a3999782d0982f2c847b33deca7ba958027dd42
parent14f48e2c901a954a6f4539e74f936e577fa9cc08
KVM/MIPS32: Privileged instruction/target branch emulation.

- The Guest kernel is run in UM and privileged instructions cause a trap.
- If the instruction causing the trap is in a branch delay slot, the branch
  needs to be emulated to figure out the PC @ which the guest will resume
  execution.

Signed-off-by: Sanjay Lal <sanjayl@kymasys.com>
Cc: kvm@vger.kernel.org
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kvm/kvm_mips_emul.c [new file with mode: 0644]
arch/mips/kvm/kvm_mips_opcode.h [new file with mode: 0644]