feat(heap): add a MALLOC_CAP_SIMD flag

MALLOC_CAP_SIMD can be used to allocate memory to be used for SIMD instructions
This commit is contained in:
Song Ruo Jing
2025-01-16 14:39:12 +08:00
parent 4d11fe5847
commit 20eb6ca5e9
12 changed files with 70 additions and 16 deletions
@@ -335,6 +335,10 @@ config SOC_BITSCRAMBLER_SUPPORTED
bool
default y
config SOC_SIMD_INSTRUCTION_SUPPORTED
bool
default y
config SOC_XTAL_SUPPORT_40M
bool
default y
@@ -547,6 +551,10 @@ config SOC_CPU_HAS_LOCKUP_RESET
bool
default y
config SOC_SIMD_PREFERRED_DATA_ALIGNMENT
int
default 16
config SOC_DS_SIGNATURE_MAX_BIT_LEN
int
default 4096
@@ -100,6 +100,7 @@
#define SOC_DEEP_SLEEP_SUPPORTED 1
#define SOC_PM_SUPPORTED 1
#define SOC_BITSCRAMBLER_SUPPORTED 1
#define SOC_SIMD_INSTRUCTION_SUPPORTED 1
/*-------------------------- XTAL CAPS ---------------------------------------*/
#define SOC_XTAL_SUPPORT_40M 1
@@ -191,6 +192,8 @@
#define SOC_CPU_HAS_LOCKUP_RESET 1
#define SOC_SIMD_PREFERRED_DATA_ALIGNMENT 16 // The preferred data alignment accepted by the SIMD instructions, in bytes
/*-------------------------- DIGITAL SIGNATURE CAPS ----------------------------------------*/
/** The maximum length of a Digital Signature in bits. */
#define SOC_DS_SIGNATURE_MAX_BIT_LEN (4096)
@@ -243,6 +243,10 @@ config SOC_PM_SUPPORTED
bool
default y
config SOC_SIMD_INSTRUCTION_SUPPORTED
bool
default y
config SOC_XTAL_SUPPORT_40M
bool
default y
@@ -395,6 +399,10 @@ config SOC_CPU_WATCHPOINT_MAX_REGION_SIZE
int
default 64
config SOC_SIMD_PREFERRED_DATA_ALIGNMENT
int
default 16
config SOC_DS_SIGNATURE_MAX_BIT_LEN
int
default 4096
@@ -82,6 +82,7 @@
#define SOC_DEEP_SLEEP_SUPPORTED 1
#define SOC_LP_PERIPH_SHARE_INTERRUPT 1 // LP peripherals sharing the same interrupt source
#define SOC_PM_SUPPORTED 1
#define SOC_SIMD_INSTRUCTION_SUPPORTED 1
/*-------------------------- XTAL CAPS ---------------------------------------*/
#define SOC_XTAL_SUPPORT_40M 1
@@ -148,6 +149,8 @@
#define SOC_CPU_WATCHPOINTS_NUM 2
#define SOC_CPU_WATCHPOINT_MAX_REGION_SIZE 64 // bytes
#define SOC_SIMD_PREFERRED_DATA_ALIGNMENT 16 // The preferred data alignment accepted by the SIMD instructions, in bytes
/*-------------------------- DIGITAL SIGNATURE CAPS ----------------------------------------*/
/** The maximum length of a Digital Signature in bits. */
#define SOC_DS_SIGNATURE_MAX_BIT_LEN (4096)