LoongArch: Fix missing fcsr in ptrace's fpr_set
authorQi Hu <huqi@loongson.cn>
Thu, 14 Jul 2022 06:25:50 +0000 (14:25 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 29 Jul 2022 10:22:33 +0000 (18:22 +0800)
commitb0f3bdc00240fc9d7bf0f2a076943122d168c95e
tree44e91945af7f64a47da280d48449fae1873ee093
parent1aea29d7c3569e5b6c40e73c51e9f4b2142c96ef
LoongArch: Fix missing fcsr in ptrace's fpr_set

In file ptrace.c, function fpr_set does not copy fcsr data from ubuf
to kbuf. That's the reason why fcsr cannot be modified by ptrace.

This patch fixs this problem and allows users using ptrace to modify
the fcsr.

Co-developed-by: Xu Li <lixu@loongson.cn>
Signed-off-by: Qi Hu <huqi@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/ptrace.c