LoongArch: Fix the write_fcsr() macro
authorQi Hu <huqi@loongson.cn>
Thu, 15 Jun 2023 06:35:52 +0000 (14:35 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 15 Jun 2023 06:35:52 +0000 (14:35 +0800)
commit346dc929623cef70ff7832a4fa0ffd1b696e312a
tree535dd55f8beaa6e1b83936d1f7c6aada3ddd58ef
parentddc1729b07cc84bb29f577698b8d2e74a4004a6e
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 <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