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>
This commit is contained in:

committed by
Ralf Baechle

parent
5fb59fd2e7
commit
9b5c339958
@@ -229,6 +229,8 @@
|
||||
|
||||
/* MIPS32/64 EntryHI bit definitions */
|
||||
#define MIPS_ENTRYHI_EHINV (_ULCAST_(1) << 10)
|
||||
#define MIPS_ENTRYHI_ASIDX (_ULCAST_(0x3) << 8)
|
||||
#define MIPS_ENTRYHI_ASID (_ULCAST_(0xff) << 0)
|
||||
|
||||
/*
|
||||
* R4x00 interrupt enable / cause bits
|
||||
|
Reference in New Issue
Block a user