Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to set segue flags for wasm-c-api JIT #2926

Merged
merged 6 commits into from
Jan 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Enable segue optimization for wasm-c-api JIT
  • Loading branch information
wenyongh committed Dec 25, 2023
commit b675bd32970570d04bae8442a3289096347bc2ed
6 changes: 6 additions & 0 deletions core/iwasm/common/wasm_c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,12 @@ wasm_engine_new_internal(wasm_config_t *config)
memcpy(&init_args.mem_alloc_option, &config->mem_alloc_option,
sizeof(MemAllocOption));
init_args.linux_perf_support = config->linux_perf_support;
#if WASM_ENABLE_JIT != 0
#if defined(os_writegsbase)
/* enable segue for all load/store operations */
init_args.segue_flags = 0x1F1F;
#endif
#endif

if (!wasm_runtime_full_init(&init_args)) {
LOG_DEBUG("wasm_runtime_full_init failed");
Expand Down