]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Add MAC2008 Support
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Mon, 13 Jan 2020 10:16:11 +0000 (18:16 +0800)
committerPaul Burton <paulburton@kernel.org>
Wed, 22 Jan 2020 23:56:08 +0000 (15:56 -0800)
commitadc458846eeef0f91038a1e7e4e57c0a11a3f50e
tree7a1a50ccc9502f153efd87015a51a2c8fdb9b961
parentd3ab0b2439d762f89188cf4884ffff68ba4ac15f
MIPS: Add MAC2008 Support

MAC2008 means the processor implemented IEEE754 style Fused MADD
instruction. It was introduced in Release3 but removed in Release5.

The toolchain support of MAC2008 have never landed except for Loongson
processors.

This patch aimed to disabled the MAC2008 if it's optional. For
MAC2008 only processors, we corrected math-emu behavior to align
with actual hardware behavior.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
[paulburton@kernel.org: Fixup MIPSr2-r5 check in cpu_set_fpu_2008.]
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: chenhc@lemote.com
Cc: paul.burton@mips.com
Cc: linux-kernel@vger.kernel.org
arch/mips/include/asm/cpu-features.h
arch/mips/include/asm/cpu.h
arch/mips/include/asm/mipsregs.h
arch/mips/kernel/cpu-probe.c
arch/mips/math-emu/cp1emu.c
arch/mips/math-emu/dp_maddf.c
arch/mips/math-emu/ieee754.h
arch/mips/math-emu/ieee754int.h
arch/mips/math-emu/sp_maddf.c