[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230608022233.1859773-1-huqi@loongson.cn>
Date: Thu, 8 Jun 2023 10:22:33 +0800
From: Qi Hu <huqi@...ngson.cn>
To: Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>
Cc: Qing Zhang <zhangqing@...ngson.cn>, Enze Li <lienze@...inos.cn>,
loongarch@...ts.linux.dev, linux-kernel@...r.kernel.org,
Qi Hu <huqi@...ngson.cn>, Miao HAO <haomiao19@...ls.ucas.ac.cn>
Subject: [PATCH] LoongArch: Fix function write_fcsr
Function "write_fcsr" uses wrong asm dest. Fix it!
Reported-by: Miao HAO <haomiao19@...ls.ucas.ac.cn>
Signed-off-by: Qi Hu <huqi@...ngson.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
Powered by blists - more mailing lists