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

product-mini/platforms/posix/main.c: adapt to WASM_MEM_DUAL_BUS_MIRROR #3427

Merged
merged 1 commit into from May 14, 2024

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
377 checks passed
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.

None yet

3 participants