MIPS: Add & use CP0_EntryHi ASID definitions
authorJames Hogan <james.hogan@imgtec.com>
Fri, 6 May 2016 13:36:19 +0000 (14:36 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:02:18 +0000 (14:02 +0200)
commit9b5c3399584b6f6aa755dbe11e3cef5776fd279d
tree52234bb21d945aaa67b85d56ce247ec0736adca5
parent5fb59fd2e7f7ee6bfc20ab9c0ef82e33c0057be5
MIPS: Add & use CP0_EntryHi ASID definitions

Add definitions for the ASID field in CP0_EntryHi (along with the soon
to be used ASIDX field), and use them in a few previously hardcoded
cases.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Manuel Lauss <manuel.lauss@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13205/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mipsregs.h
arch/mips/kernel/genex.S
arch/mips/kvm/locore.S
arch/mips/pci/pci-alchemy.c