diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-01-13 11:16:11 +0100 |
---|---|---|
committer | Paul Burton <paulburton@kernel.org> | 2020-01-23 00:56:08 +0100 |
commit | ece276de2a1f90b6a7836d388c372b9025345469 (patch) | |
tree | 7a1a50ccc9502f153efd87015a51a2c8fdb9b961 /arch/mips/include/asm/cpu-features.h | |
parent | Revert "MIPS: Add custom serial.h with BASE_BAUD override for generic kernel" (diff) | |
download | linux-ece276de2a1f90b6a7836d388c372b9025345469.tar.xz linux-ece276de2a1f90b6a7836d388c372b9025345469.zip |
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
Diffstat (limited to 'arch/mips/include/asm/cpu-features.h')
-rw-r--r-- | arch/mips/include/asm/cpu-features.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cpu-features.h b/arch/mips/include/asm/cpu-features.h index 983a6a7f43a1..de44c92b1c1f 100644 --- a/arch/mips/include/asm/cpu-features.h +++ b/arch/mips/include/asm/cpu-features.h @@ -555,6 +555,10 @@ # define cpu_has_perf __opt(MIPS_CPU_PERF) #endif +#ifndef cpu_has_mac2008_only +# define cpu_has_mac2008_only __opt(MIPS_CPU_MAC_2008_ONLY) +#endif + #ifdef CONFIG_SMP /* * Some systems share FTLB RAMs between threads within a core (siblings in |