diff options
author | Huacai Chen <chenhc@lemote.com> | 2016-03-02 20:45:12 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-05-13 08:02:15 -0400 |
commit | 380cd582c08831217ae693c86411902e6300ba6b (patch) | |
tree | b7782319903d4af1ceae2e76edd8812b8392ef42 /arch/mips/include/uapi/asm/inst.h | |
parent | 06e4814eec988f7ee01c29762f945b3ff59355fb (diff) |
MIPS: Loongson-3: Fast TLB refill handler
Loongson-3A R2 has pwbase/pwfield/pwsize/pwctl registers in CP0 (this
is very similar to HTW) and lwdir/lwpte/lddir/ldpte instructions which
can be used for fast TLB refill.
[ralf@linux-mips.org: Resolve conflict.]
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Steven J . Hill <sjhill@realitydiluted.com>
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12754/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/uapi/asm/inst.h')
-rw-r--r-- | arch/mips/include/uapi/asm/inst.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/include/uapi/asm/inst.h b/arch/mips/include/uapi/asm/inst.h index ddea53e3a9bb..3bb8cd957e81 100644 --- a/arch/mips/include/uapi/asm/inst.h +++ b/arch/mips/include/uapi/asm/inst.h | |||
@@ -204,6 +204,16 @@ enum mad_func { | |||
204 | }; | 204 | }; |
205 | 205 | ||
206 | /* | 206 | /* |
207 | * func field for page table walker (Loongson-3). | ||
208 | */ | ||
209 | enum ptw_func { | ||
210 | lwdir_op = 0x00, | ||
211 | lwpte_op = 0x01, | ||
212 | lddir_op = 0x02, | ||
213 | ldpte_op = 0x03, | ||
214 | }; | ||
215 | |||
216 | /* | ||
207 | * func field for special3 lx opcodes (Cavium Octeon). | 217 | * func field for special3 lx opcodes (Cavium Octeon). |
208 | */ | 218 | */ |
209 | enum lx_func { | 219 | enum lx_func { |