feat(soc): esp32s31 enable zc* extension

This commit is contained in:
Alexey Lapshin
2026-07-28 17:07:05 +07:00
committed by BOT
parent a526754325
commit 62ef4a6166
3 changed files with 10 additions and 2 deletions

View File

@@ -567,6 +567,10 @@ config SOC_SIMD_PREFERRED_DATA_ALIGNMENT
int
default 16
config SOC_CPU_HAS_ZC_EXTENSIONS
bool
default y
config SOC_DMA_CAN_ACCESS_FLASH
bool
default y

View File

@@ -193,6 +193,8 @@
#define SOC_SIMD_PREFERRED_DATA_ALIGNMENT 16 // The preferred data alignment accepted by the SIMD instructions, in bytes
#define SOC_CPU_HAS_ZC_EXTENSIONS 1
/*-------------------------- DMA Common CAPS ----------------------------------------*/
#define SOC_DMA_CAN_ACCESS_FLASH 1 /*!< DMA can access Flash memory */

View File

@@ -55,9 +55,11 @@ if(CONFIG_IDF_TOOLCHAIN_GCC)
if(CONFIG_SOC_CPU_ZCMP_PUSH_REVERSED)
idf_toolchain_add_flags(COMPILE_OPTIONS "-mno-cm-push-reverse")
endif()
if(CONFIG_SOC_CPU_ZCMP_POPRET_ISSUE)
# TODO GCC-493: uncomment when the issue is resolved
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126454
# if(CONFIG_SOC_CPU_ZCMP_POPRET_ISSUE)
idf_toolchain_add_flags(COMPILE_OPTIONS "-mno-cm-popret")
endif()
# endif()
endif()
endif()