summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorQi Hu <huqi@loongson.cn>2022-07-06 13:29:37 +0200
committerHuacai Chen <chenhuacai@loongson.cn>2022-07-07 11:41:01 +0200
commit112380996ac22e428264cd7186722e784db887e4 (patch)
tree3210bc5b02e47af73909cbdbe3fa9ce2ce2d6ce4 /arch/loongarch/kernel/asm-offsets.c
parentLoongArch: Drop these obsolete selects in Kconfig (diff)
downloadlinux-112380996ac22e428264cd7186722e784db887e4.tar.xz
linux-112380996ac22e428264cd7186722e784db887e4.zip
LoongArch: Remove obsolete mentions of vcsr
The `vcsr` only exists in the old hardware design, it isn't used in any shipped hardware from Loongson-3A5000 on. Both scalar FP and LSX/LASX instructions use the `fcsr` as their control and status registers now. For example, the RM control bit in fcsr0 is shared by FP, LSX and LASX instructions. Particularly, fcsr16 to fcsr31 are reserved for LSX/LASX now, access to these registers has no visible effect if LSX/LASX is enabled, and will cause SXD/ASXD exceptions if LSX/LASX is not enabled. So, mentions of vcsr are obsolete in the first place (it was just used for debugging), let's remove them. Reviewed-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Qi Hu <huqi@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/kernel/asm-offsets.c')
-rw-r--r--arch/loongarch/kernel/asm-offsets.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/asm-offsets.c b/arch/loongarch/kernel/asm-offsets.c
index bfb65eb2844f..20cd9e16a95a 100644
--- a/arch/loongarch/kernel/asm-offsets.c
+++ b/arch/loongarch/kernel/asm-offsets.c
@@ -166,7 +166,6 @@ void output_thread_fpu_defines(void)
OFFSET(THREAD_FCSR, loongarch_fpu, fcsr);
OFFSET(THREAD_FCC, loongarch_fpu, fcc);
- OFFSET(THREAD_VCSR, loongarch_fpu, vcsr);
BLANK();
}