projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddc1729
)
LoongArch: Fix the write_fcsr() macro
author
Qi Hu
<huqi@loongson.cn>
Thu, 15 Jun 2023 06:35:52 +0000
(14:35 +0800)
committer
Huacai Chen
<chenhuacai@loongson.cn>
Thu, 15 Jun 2023 06:35:52 +0000
(14:35 +0800)
The "write_fcsr()" macro uses wrong the positions for val and dest in
asm. Fix it!
Reported-by: Miao HAO <haomiao19@mails.ucas.ac.cn>
Signed-off-by: Qi Hu <huqi@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/loongarch.h
patch
|
blob
|
history
diff --git
a/arch/loongarch/include/asm/loongarch.h
b/arch/loongarch/include/asm/loongarch.h
index b3323ab5b78d37d5acdea5ca9b3d3479eb2fdcc8..35e8a52fea11a71004e1a79e092f4ec6c0e2d10e 100644
(file)
--- a/
arch/loongarch/include/asm/loongarch.h
+++ b/
arch/loongarch/include/asm/loongarch.h
@@
-1496,7
+1496,7
@@
__BUILD_CSR_OP(tlbidx)
#define write_fcsr(dest, val) \
do { \
__asm__ __volatile__( \
- " movgr2fcsr
%0, "__stringify(dest)"
\n" \
+ " movgr2fcsr
"__stringify(dest)", %0
\n" \
: : "r" (val)); \
} while (0)