Skip to content

Commit 9ab6906

Browse files
agattidpgeorge
authored andcommitted
esp32/esp32_common.cmake: Use native gchelper for RISC-V.
This commit changes the gchelper implementation in use for RV32-based targets (ESP32C3, ESP32C6) from the generic one written in C to the one written in assembler that is specific to the CPU in question. The native implementation is already exercised on most CI builds as it is used by the QEMU port to compile and test the RV32 target. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
1 parent 1660faa commit 9ab6906

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ports/esp32/esp32_common.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ endif()
1616

1717
# RISC-V specific inclusions
1818
if(CONFIG_IDF_TARGET_ARCH_RISCV)
19-
list(APPEND MICROPY_SOURCE_LIB ${MICROPY_DIR}/shared/runtime/gchelper_generic.c)
19+
list(APPEND MICROPY_SOURCE_LIB
20+
${MICROPY_DIR}/shared/runtime/gchelper_native.c
21+
${MICROPY_DIR}/shared/runtime/gchelper_rv32i.s
22+
)
2023
list(APPEND IDF_COMPONENTS riscv)
2124
endif()
2225

0 commit comments

Comments
 (0)