Skip to content

Conversation

yamt
Copy link
Collaborator

@yamt yamt commented May 13, 2024

No description provided.

bh_memcpy_s(daddr, wasm_file_size, wasm_file_buf, wasm_file_size);
#if (WASM_MEM_DUAL_BUS_MIRROR != 0)
os_dcache_flush();
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can add an API in core/shared/util (like bh_common.c/h) to copy data into dst addr? So as to simplify the code in aot_loader.c, aot_reloc_xtensa.c and here, which are controlled by macro WASM_MEM_DUAL_BUS_MIRROR.

@dongsheng28849455
Copy link
Contributor

LGTM

@wenyongh wenyongh merged commit 267eaa1 into bytecodealliance:main May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants