Merge branch 'feature/enable_zc_extension_for_esp32s31_v6.1' into 'release/v6.1'

feat(soc): esp32s31 enable zc* extension (v6.1)

See merge request espressif/esp-idf!51324
This commit is contained in:
Jiang Jiang Jian
2026-08-31 11:25:39 +08:00
3 changed files with 10 additions and 2 deletions
@@ -595,6 +595,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
@@ -201,6 +201,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 */
+4 -2
View File
@@ -48,9 +48,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()