Stream: git-wasmtime

Topic: wasmtime / PR #10069 Fix argument extension on riscv64 fo...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 21 2025 at 21:18):

alexcrichton opened PR #10069 from alexcrichton:fix-riscv64-sext to bytecodealliance:main:

This commit fixes a crash found in the CI of #10040. That PR itself isn't the fault per-se but rather uncovered a preexisting issue on riscv64. According to riscv64's ABI docs it looks like arguments are all expected to be sign-extended, whereas currently in Wasmtime all host signatures are zero-extended on all platforms. This commit applies two changes to fix this:

I'm not certain that all platforms require uext but I've left the TargetIsa implementation as uext for now with a comment explaining why. Currently the only non-uext platforms are riscv64, which is sext to fix the issue from #10040, and Pulley which is "none" as things work differently there.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jan 21 2025 at 21:18):

alexcrichton requested abrown for a review on PR #10069.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 21 2025 at 21:18):

alexcrichton requested wasmtime-compiler-reviewers for a review on PR #10069.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 21 2025 at 21:18):

alexcrichton requested pchickey for a review on PR #10069.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 21 2025 at 21:18):

alexcrichton requested wasmtime-core-reviewers for a review on PR #10069.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 21 2025 at 21:21):

alexcrichton updated PR #10069.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 23 2025 at 15:07):

abrown submitted PR review:

Thanks for the comments!

view this post on Zulip Wasmtime GitHub notifications bot (Jan 23 2025 at 15:42):

alexcrichton merged PR #10069.


Last updated: Jan 24 2025 at 00:11 UTC