linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] LoongArch: Fix function write_fcsr
@ 2023-06-08  2:22 Qi Hu
  0 siblings, 0 replies; only message in thread
From: Qi Hu @ 2023-06-08  2:22 UTC (permalink / raw)
  To: Huacai Chen, WANG Xuerui
  Cc: Qing Zhang, Enze Li, loongarch, linux-kernel, Qi Hu, Miao HAO

Function "write_fcsr" uses wrong asm dest. Fix it!

Reported-by: Miao HAO <haomiao19@mails.ucas.ac.cn>
Signed-off-by: Qi Hu <huqi@loongson.cn>
---
 arch/loongarch/include/asm/loongarch.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/loongarch/include/asm/loongarch.h b/arch/loongarch/include/asm/loongarch.h
index b3323ab5b78d..60cadb95f611 100644
--- a/arch/loongarch/include/asm/loongarch.h
+++ b/arch/loongarch/include/asm/loongarch.h
@@ -1488,7 +1488,7 @@ __BUILD_CSR_OP(tlbidx)
 	unsigned int __res;	\
 \
 	__asm__ __volatile__(	\
-	"	movfcsr2gr	%0, "__stringify(source)" \n"	\
+	"	movfcsr2gr	"__stringify(source)", %0 \n"	\
 	: "=r" (__res));	\
 	__res;	\
 })
-- 
2.40.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-08  2:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-08  2:22 [PATCH] LoongArch: Fix function write_fcsr Qi Hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).