MIPS: KVM: Combine handle_tlb_ld/st_miss
authorJames Hogan <james.hogan@imgtec.com>
Thu, 9 Jun 2016 13:19:20 +0000 (14:19 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2016 09:02:47 +0000 (11:02 +0200)
commit3b08aec549a0314b8c3788bdc2a21096d53225e1
tree193997bf9f20d0f56e195816e6a657f4699debf8
parente6207bbea16c60942cdc1492af4feed5aed77389
MIPS: KVM: Combine handle_tlb_ld/st_miss

The handle_tlb_ld/st_miss handlers are logically equivalent and
textually almost identical, so combine their implementations into a
single kvm_trap_emul_handle_tlb_miss().

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