• James Hogan's avatar
    MIPS: KVM: Simplify TLB_* macros · 19d194c6
    James Hogan authored
    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: default avatarJames 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: default avatarPaolo Bonzini <pbonzini@redhat.com>
    19d194c6
kvm_host.h 26.9 KB