projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c295bc3
)
riscv: convert the t-head pbmt errata to use the __nops macro
author
Heiko Stuebner
<heiko@sntech.de>
Tue, 7 Jun 2022 14:30:59 +0000
(16:30 +0200)
committer
Palmer Dabbelt
<palmer@rivosinc.com>
Fri, 22 Jul 2022 00:18:24 +0000
(17:18 -0700)
Instead of manually inserting the list of nops, use the recently
introduced __nops(n) macro to make everything more readable.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/errata_list.h
patch
|
blob
|
history
diff --git
a/arch/riscv/include/asm/errata_list.h
b/arch/riscv/include/asm/errata_list.h
index
9e2888d
..
e4ee535
100644
(file)
--- a/
arch/riscv/include/asm/errata_list.h
+++ b/
arch/riscv/include/asm/errata_list.h
@@
-68,13
+68,7
@@
asm(ALTERNATIVE_2("li %0, 0\t\nnop", \
*/
#define ALT_THEAD_PMA(_val) \
asm volatile(ALTERNATIVE( \
- "nop\n\t" \
- "nop\n\t" \
- "nop\n\t" \
- "nop\n\t" \
- "nop\n\t" \
- "nop\n\t" \
- "nop", \
+ __nops(7), \
"li t3, %2\n\t" \
"slli t3, t3, %4\n\t" \
"and t3, %0, t3\n\t" \