]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Remove obsolete mentions of vcsr
authorQi Hu <huqi@loongson.cn>
Wed, 6 Jul 2022 11:29:37 +0000 (19:29 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 7 Jul 2022 09:41:01 +0000 (17:41 +0800)
commitdaccf64c2fc4f62fab883dfd6bce76cd0395c6f7
tree3210bc5b02e47af73909cbdbe3fa9ce2ce2d6ce4
parente2a0a54e8cd2a64ee3c120cc52001626e74bbb2a
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>
arch/loongarch/include/asm/fpregdef.h
arch/loongarch/include/asm/processor.h
arch/loongarch/kernel/asm-offsets.c
arch/loongarch/kernel/fpu.S