YAMAMOTO Takashi
f12586c51e
interpreters/wamr: add INTERPRETERS_WAMR_DEBUG_AOT option
...
At least it's sometimes useful for nuttx sim.
eg. (modified a bit to avoid github autolinks)
```
spacetanuki% lldb ./nuttx
(lldb) target create "./nuttx"
Current executable set to '/Users/yamamoto/git/nuttx/nuttx/nuttx' (x86_64).
(lldb) settings set plugin.jit-loader.gdb.enable on
(lldb) b foo
Breakpoint 1: no locations (pending).
WARNING: Unable to resolve breakpoint to any actual locations.
(lldb) r
Process 37011 launched: '/Users/yamamoto/git/nuttx/nuttx/nuttx' (x86_64)
NuttShell (NSH) NuttX-10.4.0
nsh> mount -t hostfs -o fs=/tmp/wasm /mnt
nsh> iwasm /mnt/test.aot
1 location added to breakpoint 1
Process 37011 stopped
* thread #_1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #_0: 0x0000000105800673 JIT(0x1058002d4)`foo(exenv=0x0000000101284280) at test.c:5
2
3 __attribute__((noinline))
4 void foo()
-> 5 {
6 printf("hello from %s\n", __func__);
7 }
8
Target 0: (nuttx) stopped.
(lldb) bt
* thread #_1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
* frame #_0: 0x0000000105800673 JIT(0x1058002d4)`foo(exenv=0x0000000101284280) at test.c:5
frame #_1: 0x000000010580077a JIT(0x1058002d4)`bar(exenv=0x0000000101284280) at test.c:12:2
frame #_2: 0x000000010580086a JIT(0x1058002d4)`baz(exenv=0x0000000101284280) at test.c:19:2
frame #_3: 0x0000000105800972 JIT(0x1058002d4)`__main_argc_argv(exenv=<unavailable>, argc=<unavailable>, argv=<unavailable>) at test.c:26:3
frame #_4: 0x00000001058061aa JIT(0x1058002d4)`aot_func#14 + 278
frame #_5: 0x00000001058005cd JIT(0x1058002d4)`aot_func#2 + 153
frame #_6: 0x00000001000e250f nuttx`push_args_end at invokeNative_em64.s:61
frame #_7: 0x000000010013851a nuttx`wasm_runtime_invoke_native(exec_env=0x0000000101284280, func_ptr=0x0000000105800534, func_type=0x00000001011e2e20, signature=0x0000000000000000, attachment=0x0000000000000000, argv=0x0000000000000000, argc=0, argv_ret=0x0000000000000000) at wasm_runtime_common.c:4631:9
frame #_8: 0x00000001000da1ae nuttx`aot_call_function(exec_env=0x0000000101284280, function=0x00000001011e1fb0, argc=0, argv=0x0000000000000000) at aot_runtime.c:1654:15
frame #_9: 0x0000000100134b56 nuttx`wasm_runtime_call_wasm(exec_env=0x0000000101284280, function=0x00000001011e1fb0, argc=0, argv=0x0000000000000000) at wasm_runtime_common.c:2048:15
frame #_10: 0x00000001000fbad4 nuttx`execute_main(module_inst=0x00000001011e3890, argc=1, argv=0x00000001011b63f8) at wasm_application.c:112:15
frame #_11: 0x00000001000fb995 nuttx`wasm_application_execute_main(module_inst=0x00000001011e3890, argc=1, argv=0x00000001011b63f8) at wasm_application.c:238:11
frame #_12: 0x00000001000ea1a0 nuttx`app_instance_main(module_inst=0x00000001011e3890) at main.c:113:5
frame #_13: 0x00000001000e9d60 nuttx`iwasm_main(argc=1, argv=0x00000001011b63f8) at main.c:947:21
frame #_14: 0x0000000100023275 nuttx`nxtask_startup(entrypt=(nuttx`iwasm_main at main.c:545), argc=2, argv=0x00000001011b63f0) at task_startup.c:70:8
frame #_15: 0x000000010001065a nuttx`nxtask_start at task_start.c:134:7
frame #_16: 0x000000010003a15f nuttx`pre_start at sim_initialstate.c:52:3
(lldb)
```
2023-12-25 04:47:07 -08:00
Huang Qi
097411de49
wamr: Add support for custom section loading
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-11-21 08:11:59 -08:00
simbit18
e501f784c3
Fix Kconfig style
...
Add TABs
Add comments
2023-08-11 22:13:17 +08:00
YAMAMOTO Takashi
c078b2ee7a
wamr: add a kconfig to control wasi-threads
...
cf. https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/pthread_impls.md
2023-07-06 09:25:14 -03:00
Huang Qi
be0e677699
interpreters/wamr: New option for configurable bounds checks
...
Works with https://github.com/bytecodealliance/wasm-micro-runtime/pull/2289
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-07-05 16:25:56 +08:00
Huang Qi
95acf6c904
interpreters/wamr: New option to dump call stack
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-03-24 11:37:22 +08:00
Gustavo Henrique Nihei
fe7b57aa11
wamr: Fix INTERPRETERS_WAMR_LIBC_WASI dependency on PSEUDOFS_SOFTLINKS
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-04 01:47:33 +08:00
Huang Qi
0357cb99b2
interpreters/wamr: New option to support spec test
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-11-17 13:28:40 +08:00
Huang Qi
31e7c5ec60
interpreters/wamr: New option to support ref types
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-11-17 13:28:40 +08:00
YAMAMOTO Takashi
65b58724ca
interpreters/wamr/Kconfig: Add INTERPRETERS_WAMR_DEBUG_INTERP option
...
Tested with sim/Linux/amd64 and esp32 devkit-c.
2022-08-29 14:20:19 +08:00
Huang Qi
29a49f366e
wamr: Add a new option to custom stack guard size
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-10 15:21:26 +08:00
Huang Qi
167c551e82
wamr: Add a new option to enable semaphore support
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-09 23:17:00 +08:00
YAMAMOTO Takashi
e5c07b9a62
interpreters/wamr: Remove WAMR_VERSION_STUB and always use actual tags
...
This allows to use a commit sha1 for CONFIG_INTERPRETERS_WAMR_VERSION.
Note: the existing configs with specific wamr version
need to be updated.
Tested with:
CONFIG_INTERPRETERS_WAMR_VERSION=main
CONFIG_INTERPRETERS_WAMR_VERSION=WAMR-04-15-2021
CONFIG_INTERPRETERS_WAMR_VERSION=3168ba8dcf20d9d8539d75c637420f5fd8682335
2022-06-02 00:35:08 +08:00
YAMAMOTO Takashi
ba08c77000
interpreters/wamr/Kconfig: enable text heap when necessary
2022-05-25 15:25:05 +08:00
YAMAMOTO Takashi
562db060b7
interpreters/wamr/Kconfig: Mention limitations about wasi
2022-05-24 22:38:36 +08:00
YAMAMOTO Takashi
90e164b708
interpreters/wamr/Kconfig: Add an option to enable wasi libc
2022-05-24 22:38:36 +08:00
YAMAMOTO Takashi
137b924b93
interpreters/wamr/Kconfig: Add INTERPRETERS_WAMR_PERF_PROFILING
2022-05-20 21:53:34 +08:00
zhouliang3
1e7a2bc009
apps/wamr: Add wamr memory Kconfig
...
Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com>
2022-03-14 20:52:39 +08:00
Xiang Xiao
4cc0c755bf
Remove CONFIG_CLOCK_MONOTONIC special code
...
since this opion doesn't exist anymore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-23 01:21:44 +08:00
Fotis Panagiotopoulos
bc5d8034f1
Typo fixes.
2022-01-06 10:30:41 +08:00
Masayuki Ishikawa
a077598b6d
interpreters: wamr: Change the default version to "04-15-2021"
...
Summary:
- This commit changes the default version to "04-15-2021"
to fix a compile error for Cortex-M target
Impact:
- WASM micro runtime (WAMR)
- NOTE: There are still compile warnings in the WAMR which
should be fixed later
Testing:
- Tested with spresense (NOTE: need to add -lm)
- Tested with esp32-devkitc
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-05-27 08:20:43 +02:00
Huang Qi
ea5a9a08bc
interpreters/wamr: Support latest snapshot for main branch
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-12-21 05:47:12 -06:00
YAMAMOTO Takashi
46650ffc29
interpreters/wamr: This requires CLOCK_MONOTONIC to build
2020-10-13 08:09:36 +02:00
Huang Qi
1efc805b4e
interpreters/wamr: Bump to latest release.
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-09-29 08:45:31 +01:00
Huang Qi
c26d662951
interpreters/wamr: Add configs for heap pool & custom name sections
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-09-27 19:42:08 +01:00
Huang Qi
69956020b4
interpreters/wamr: Add missing options
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: Id1783f42842288a8f9c6ddf6105b6718dde757a1
2020-09-17 18:28:17 +01:00
Huang Qi
0b4fa2f66a
interpreters: Inroduce support for WAMR
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-09-16 20:53:31 +01:00