MIPS: Loongson64: Disable exec hazard
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Mon, 13 Jan 2020 10:15:01 +0000 (18:15 +0800)
committerPaul Burton <paulburton@kernel.org>
Thu, 23 Jan 2020 18:27:06 +0000 (10:27 -0800)
Loongson64 has hardware mechanism to prevent hazard issue,
so we can simply disable exec hazard in cpu-features.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
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/mach-loongson64/cpu-feature-overrides.h

index f4953be1d546869fc7c8fd66c292e7268fa17c29..4fab38c743dde2409f438462660833c468bb0089 100644 (file)
@@ -47,5 +47,6 @@
 #define cpu_has_ic_fills_f_dc  1
 #define cpu_hwrena_impl_bits   0xc0000000
 #define cpu_has_mac2008_only   1
+#define cpu_has_mips_r2_exec_hazard 0
 
 #endif /* __ASM_MACH_LOONGSON64_CPU_FEATURE_OVERRIDES_H */