-
Couldn't load subscription status.
- Fork 727
Add new E_TYPE_XIP to indicate XIP mode #874
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
Conversation
9595435 to
ead9224
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And should also modify function wasm_runtime_is_xip_file in wasm_runtime_common.c
9666456 to
2ad4e07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, after testing , we found several issues, could you please help modify:
-
aot_loader.c, about Line 1470:
Change
if ((module->code_size > 0) && (module->native_symbol_count == 0)) {
to
if ((module->code_size > 0) && !module->is_indirect_mode) { -
aot_loader.c, about Line 480:
remove
module->native_symbol_count = cnt; -
aot_runtime.h
remove native_symbol_count field in struct AOTModule
To test spec cases for AOT with XIP mode, you can:
cd tests/wamr-test-suites
./test_wamr.sh -s spec -t aot -X
Emit e_type = E_TYPE_XIP in target info section to indicate that it is an XIP file, and replace related checks in aot loader.
WAMRC will emit E_TYPE_XIP while enable indirect mode, this will break the capability.