From: Qi Hu Date: Thu, 15 Jun 2023 06:35:52 +0000 (+0800) Subject: LoongArch: Fix the write_fcsr() macro X-Git-Tag: v6.6-pxa1908~1057^2~3 X-Git-Url: https://git.dujemihanovic.xyz/?a=commitdiff_plain;h=346dc929623cef70ff7832a4fa0ffd1b696e312a;p=linux.git LoongArch: Fix the write_fcsr() macro The "write_fcsr()" macro uses wrong the positions for val and dest in asm. Fix it! Reported-by: Miao HAO Signed-off-by: Qi Hu Signed-off-by: Huacai Chen --- diff --git a/arch/loongarch/include/asm/loongarch.h b/arch/loongarch/include/asm/loongarch.h index b3323ab5b78d..35e8a52fea11 100644 --- 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)