summaryrefslogtreecommitdiff
path: root/arch/mips/kvm/tlb.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2016-06-09 13:19:18 (GMT)
committerPaolo Bonzini <pbonzini@redhat.com>2016-06-14 09:02:46 (GMT)
commit19d194c62b25cafaf64a5fe74305b3e9b84d63d8 (patch)
tree71915404ccb9a8c1696ffcb3ecbb2e5486991852 /arch/mips/kvm/tlb.c
parent9fbfb06a4065772571aa58d2583868268fc8be53 (diff)
downloadlinux-19d194c62b25cafaf64a5fe74305b3e9b84d63d8.tar.xz
MIPS: KVM: Simplify TLB_* macros
Simplify some of the TLB_ macros making use of the arrayification of tlb_lo. Basically we index the array by the bit of the virtual address which determines whether the even or odd entry is used, instead of having a conditional. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: linux-mips@linux-mips.org Cc: kvm@vger.kernel.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm/tlb.c')
0 files changed, 0 insertions, 0 deletions