summaryrefslogtreecommitdiff
path: root/arch/mips/kvm/mmu.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2016-06-09 14:19:18 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-06-14 11:02:46 +0200
commit19d194c62b25cafaf64a5fe74305b3e9b84d63d8 (patch)
tree71915404ccb9a8c1696ffcb3ecbb2e5486991852 /arch/mips/kvm/mmu.c
parent9fbfb06a4065772571aa58d2583868268fc8be53 (diff)
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/mmu.c')
0 files changed, 0 insertions, 0 deletions