-
Notifications
You must be signed in to change notification settings - Fork 628
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
Enable spectest on riscv64 #2843
Conversation
else { | ||
val = (int32)((intptr_t)symbol_addr + (intptr_t)reloc_addend); | ||
} | ||
/* Already handled in R_RISCV_PCREL_HI20 */ |
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.
R_RISCV_PCREL_HI20 doesn't equal to R_RISCV_PCREL_LO12_I, why not need to handle R_RISCV_PCREL_LO12_I here?
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.
This is a little trick to reuse the code for both R_RISCV_CALL/R_RISCV_CALL_PLT/R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I handled in line 373.
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.
But this branch only break
, it does nothing, it is really strange. Should we add case R_RISCV_PCREL_LO12_I
after case R_RISCV_PCREL_HI20
to reuse the code, and then update some code in that handling accordingly?
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.
Essential check added here
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
spec_test_on_nuttx.yml
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Latest spec test here: https://github.com/no1wudi/wasm-micro-runtime/actions/runs/7081980946 |
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.
LGTM
Fix relocation issues on riscv and update test scripts and CI to enable test spec cases on riscv QEMU.
Test result : https://github.com/no1wudi/wasm-micro-runtime/actions/runs/7055453059