]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
LoongArch: Prepare for assemblers with proper FCSR class support
authorWANG Xuerui <git@xen0n.name>
Thu, 29 Jun 2023 12:58:43 +0000 (20:58 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 29 Jun 2023 12:58:43 +0000 (20:58 +0800)
commit38bb46f94544c5385bc35aa2bfc776dcf53a7b5d
treea9874bea832ce2e5665ce63c8214d55bb938fde0
parent24da0249d950bbf97a8513daf414b48548b8bbe9
LoongArch: Prepare for assemblers with proper FCSR class support

The GNU assembler (as of 2.40) mis-treats FCSR operands as GPRs, but
the LLVM IAS does not. Probe for this and refer to FCSRs as "$fcsrNN"
if support is present.

Signed-off-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Kconfig
arch/loongarch/include/asm/fpregdef.h
arch/loongarch/include/asm/loongarch.h