]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Use va in kvm_get_inst()
authorJames Hogan <james.hogan@imgtec.com>
Thu, 9 Jun 2016 13:19:21 +0000 (14:19 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2016 09:02:48 +0000 (11:02 +0200)
commitd6f4d5df4f180153e8be90ff5f6b00fb025f87fd
tree2770f9dd675283b0837cdaea107662b9a0ed5917
parent75d36d8ae625ae91920243f34a6cd9fd1a84fc81
MIPS: KVM: Use va in kvm_get_inst()

Like other functions, make use of a local unsigned long va, for the
virtual address of the PC. This reduces the amount of verbose casting of
the opc pointer to an unsigned long.

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