change(soc): Add SOC_HP_CPU_HAS_MULTIPLE_CORES

This commit adds a the SOC_HP_CPU_HAS_MULTIPLE_CORES convenience macro to
soc_caps.h. This is a convenience boolean cap to represent whether or not the
target has multiple cores, and is intended to be used when writing docs for
multiple targets.
This commit is contained in:
Darian Leung 2023-11-30 17:37:17 +08:00
parent 8005821b09
commit a7e2ea76d8
6 changed files with 15 additions and 0 deletions

View File

@ -275,6 +275,10 @@ config SOC_CPU_HAS_FPU
bool
default y
config SOC_HP_CPU_HAS_MULTIPLE_CORES
bool
default y
config SOC_CPU_BREAKPOINTS_NUM
int
default 2

View File

@ -154,6 +154,7 @@
#define SOC_CPU_CORES_NUM 2
#define SOC_CPU_INTR_NUM 32
#define SOC_CPU_HAS_FPU 1
#define SOC_HP_CPU_HAS_MULTIPLE_CORES 1 // Convenience boolean macro used to determine if a target has multiple cores.
#define SOC_CPU_BREAKPOINTS_NUM 2
#define SOC_CPU_WATCHPOINTS_NUM 2

View File

@ -299,6 +299,10 @@ config SOC_CPU_COPROC_NUM
int
default 2
config SOC_HP_CPU_HAS_MULTIPLE_CORES
bool
default y
config SOC_CPU_BREAKPOINTS_NUM
int
default 3

View File

@ -152,6 +152,7 @@
#define SOC_CPU_HAS_FPU 1
#define SOC_CPU_HAS_FPU_EXT_ILL_BUG 1 // EXT_ILL CSR doesn't support FLW/FSW
#define SOC_CPU_COPROC_NUM 2
#define SOC_HP_CPU_HAS_MULTIPLE_CORES 1 // Convenience boolean macro used to determine if a target has multiple cores.
#define SOC_CPU_BREAKPOINTS_NUM 3
#define SOC_CPU_WATCHPOINTS_NUM 3

View File

@ -363,6 +363,10 @@ config SOC_CPU_HAS_FPU
bool
default y
config SOC_HP_CPU_HAS_MULTIPLE_CORES
bool
default y
config SOC_CPU_BREAKPOINTS_NUM
int
default 2

View File

@ -136,6 +136,7 @@
#define SOC_CPU_CORES_NUM 2
#define SOC_CPU_INTR_NUM 32
#define SOC_CPU_HAS_FPU 1
#define SOC_HP_CPU_HAS_MULTIPLE_CORES 1 // Convenience boolean macro used to determine if a target has multiple cores.
#define SOC_CPU_BREAKPOINTS_NUM 2
#define SOC_CPU_WATCHPOINTS_NUM 2