From 1a740d28c853674ff63006bfd2568b01d403d0b7 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 13 May 2024 13:31:47 +0900 Subject: [PATCH 1/2] wamr: Add a few options for esp32s3 The corresponding WAMR change: https://github.com/bytecodealliance/wasm-micro-runtime/pull/2348 --- interpreters/wamr/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/interpreters/wamr/Kconfig b/interpreters/wamr/Kconfig index fa4fc8080be..31c262ec9ff 100644 --- a/interpreters/wamr/Kconfig +++ b/interpreters/wamr/Kconfig @@ -47,6 +47,16 @@ config INTERPRETERS_WAMR_AOT_QUICK_ENTRY signature. Enable this option will increase the size of runtime, ~8KB. +config INTERPRETERS_WAMR_AOT_WORD_ALIGN_READ + bool "Make WAMR AOT loader use word-aligned read" + default y + depends on INTERPRETERS_WAMR_AOT && ARCH_CHIP_ESP32S3 + +config INTERPRETERS_WAMR_MEM_DUAL_BUS_MIRROR + bool "Make WAMR AOT loader aware of ESP32-S3's memory mapping" + default y + depends on INTERPRETERS_WAMR_AOT && ARCH_CHIP_ESP32S3 + choice prompt "Enable interpreter" default INTERPRETERS_NONE From 08b2f7d4d32d7608d13b205c51eb2a561bed0d42 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 14 May 2024 14:37:36 +0900 Subject: [PATCH 2/2] wamr: remove esp32s3 dependencies from a few options While they are esp32s3 specific right now, we can make them more generic later. --- interpreters/wamr/Kconfig | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/interpreters/wamr/Kconfig b/interpreters/wamr/Kconfig index 31c262ec9ff..176ae63225b 100644 --- a/interpreters/wamr/Kconfig +++ b/interpreters/wamr/Kconfig @@ -49,13 +49,11 @@ config INTERPRETERS_WAMR_AOT_QUICK_ENTRY config INTERPRETERS_WAMR_AOT_WORD_ALIGN_READ bool "Make WAMR AOT loader use word-aligned read" - default y - depends on INTERPRETERS_WAMR_AOT && ARCH_CHIP_ESP32S3 + default n config INTERPRETERS_WAMR_MEM_DUAL_BUS_MIRROR - bool "Make WAMR AOT loader aware of ESP32-S3's memory mapping" - default y - depends on INTERPRETERS_WAMR_AOT && ARCH_CHIP_ESP32S3 + bool "Make WAMR AOT loader aware of separate instruction/data memory mapping" + default n choice prompt "Enable interpreter"