Re: [PATCH 2/2] csky: add CONFIG_CPU_HAS_MATHEMU and use in traps

From: Randy Dunlap
Date: Tue Apr 20 2021 - 23:01:36 EST


Hi--

On 4/20/21 7:49 PM, Wang Junqiang wrote:
> diff --git a/arch/csky/Kconfig b/arch/csky/Kconfig
> index 34e91224adc3..a414225570c1 100644
> --- a/arch/csky/Kconfig
> +++ b/arch/csky/Kconfig
> @@ -97,6 +97,9 @@ config CPU_HAS_CACHEV2
> config CPU_HAS_FPUV2
> bool
>
> +config CPU_HAS_MATHEMU
> + bool
> +

Why do you have this new kconfig symbol two times in the same file?

> config CPU_HAS_HILO
> bool
>
> @@ -281,6 +284,11 @@ config CPU_HAS_VDSP
> bool "CPU has VDSP coprocessor"
> depends on CPU_HAS_FPU && CPU_HAS_FPUV2
>
> +config CPU_HAS_MATHEMU
> + bool "CPU has FPU Mathemu Instructions"
> + depends on CPU_CK810 || CPU_CK860
> + default n
> +
> config CPU_HAS_FPU
> bool "CPU has FPU coprocessor"
> depends on CPU_CK807 || CPU_CK810 || CPU_CK860


thanks.
--
~Randy