提交 912a4427 编写于 作者: S Shida Zhang 提交者: Thomas Bogendoerfer

MIPS: adding a safety check for cpu_has_fpu

There is a chance 'cpu_has_fpu' would still be overridden when the
CONFIG_MIPS_FP_SUPPORT configuration option has been disabled. So
add a safety check for 'cpu_has_fpu'.
Suggested-by: NMaciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: NShida Zhang <zhangshida@kylinos.cn>
Signed-off-by: NThomas Bogendoerfer <tsbogend@alpha.franken.de>
上级 d0ab32b0
...@@ -133,6 +133,9 @@ ...@@ -133,6 +133,9 @@
# define raw_cpu_has_fpu 0 # define raw_cpu_has_fpu 0
# endif # endif
#else #else
# if cpu_has_fpu
# error "Forcing `cpu_has_fpu' to non-zero is not supported"
# endif
# define raw_cpu_has_fpu cpu_has_fpu # define raw_cpu_has_fpu cpu_has_fpu
#endif #endif
#ifndef cpu_has_32fpr #ifndef cpu_has_32fpr
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册