Skip to content

Commit 89b779e

Browse files
Icenowyopsiff
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 <[email protected]> Reviewed-by: Guo Ren <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]> (cherry picked from commit 27fb271) Signed-off-by: Han Gao <[email protected]>
1 parent 847e0cb commit 89b779e

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
@@ -105,25 +105,25 @@ asm volatile(ALTERNATIVE( \
105105
#endif
106106

107107
/*
108-
* dcache.ipa rs1 (invalidate, physical address)
108+
* th.dcache.ipa rs1 (invalidate, physical address)
109109
* | 31 - 25 | 24 - 20 | 19 - 15 | 14 - 12 | 11 - 7 | 6 - 0 |
110110
* 0000001 01010 rs1 000 00000 0001011
111-
* dache.iva rs1 (invalida, virtual address)
111+
* th.dache.iva rs1 (invalida, virtual address)
112112
* 0000001 00110 rs1 000 00000 0001011
113113
*
114-
* dcache.cpa rs1 (clean, physical address)
114+
* th.dcache.cpa rs1 (clean, physical address)
115115
* | 31 - 25 | 24 - 20 | 19 - 15 | 14 - 12 | 11 - 7 | 6 - 0 |
116116
* 0000001 01001 rs1 000 00000 0001011
117-
* dcache.cva rs1 (clean, virtual address)
117+
* th.dcache.cva rs1 (clean, virtual address)
118118
* 0000001 00101 rs1 000 00000 0001011
119119
*
120-
* dcache.cipa rs1 (clean then invalidate, physical address)
120+
* th.dcache.cipa rs1 (clean then invalidate, physical address)
121121
* | 31 - 25 | 24 - 20 | 19 - 15 | 14 - 12 | 11 - 7 | 6 - 0 |
122122
* 0000001 01011 rs1 000 00000 0001011
123-
* dcache.civa rs1 (... virtual address)
123+
* th.dcache.civa rs1 (... virtual address)
124124
* 0000001 00111 rs1 000 00000 0001011
125125
*
126-
* sync.s (make sure all cache operations finished)
126+
* th.sync.s (make sure all cache operations finished)
127127
* | 31 - 25 | 24 - 20 | 19 - 15 | 14 - 12 | 11 - 7 | 6 - 0 |
128128
* 0000000 11001 00000 000 00000 0001011
129129
*/

0 commit comments

Comments
 (0)