Skip to content

Commit 27fb271

Browse files
Icenowypalmer-dabbelt
authored andcommitted
riscv: errata: prefix T-Head mnemonics with th.
T-Head now maintains some specification for their extended instructions at [1], in which all instructions are prefixed "th.". Follow this practice in the kernel comments. Link: https://github.com/T-head-Semi/thead-extension-spec [1] Signed-off-by: Icenowy Zheng <uwu@icenowy.me> Reviewed-by: Guo Ren <guoren@kernel.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 8eb8fe6 commit 27fb271

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

arch/riscv/include/asm/errata_list.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,25 +95,25 @@ asm volatile(ALTERNATIVE( \
9595
#endif
9696

9797
/*
98-
* dcache.ipa rs1 (invalidate, physical address)
98+
* th.dcache.ipa rs1 (invalidate, physical address)
9999
* | 31 - 25 | 24 - 20 | 19 - 15 | 14 - 12 | 11 - 7 | 6 - 0 |
100100
* 0000001 01010 rs1 000 00000 0001011
101-
* dache.iva rs1 (invalida, virtual address)
101+
* th.dache.iva rs1 (invalida, virtual address)
102102
* 0000001 00110 rs1 000 00000 0001011
103103
*
104-
* dcache.cpa rs1 (clean, physical address)
104+
* th.dcache.cpa rs1 (clean, physical address)
105105
* | 31 - 25 | 24 - 20 | 19 - 15 | 14 - 12 | 11 - 7 | 6 - 0 |
106106
* 0000001 01001 rs1 000 00000 0001011
107-
* dcache.cva rs1 (clean, virtual address)
107+
* th.dcache.cva rs1 (clean, virtual address)
108108
* 0000001 00101 rs1 000 00000 0001011
109109
*
110-
* dcache.cipa rs1 (clean then invalidate, physical address)
110+
* th.dcache.cipa rs1 (clean then invalidate, physical address)
111111
* | 31 - 25 | 24 - 20 | 19 - 15 | 14 - 12 | 11 - 7 | 6 - 0 |
112112
* 0000001 01011 rs1 000 00000 0001011
113-
* dcache.civa rs1 (... virtual address)
113+
* th.dcache.civa rs1 (... virtual address)
114114
* 0000001 00111 rs1 000 00000 0001011
115115
*
116-
* sync.s (make sure all cache operations finished)
116+
* th.sync.s (make sure all cache operations finished)
117117
* | 31 - 25 | 24 - 20 | 19 - 15 | 14 - 12 | 11 - 7 | 6 - 0 |
118118
* 0000000 11001 00000 000 00000 0001011
119119
*/

0 commit comments

Comments
 (0)