Skip to content

Add fiber implementation for LoongArch64#13675

Open
heiher wants to merge 2 commits into
bytecodealliance:mainfrom
heiher:fiber-loong64
Open

Add fiber implementation for LoongArch64#13675
heiher wants to merge 2 commits into
bytecodealliance:mainfrom
heiher:fiber-loong64

Conversation

@heiher

@heiher heiher commented Jun 17, 2026

Copy link
Copy Markdown

Add LoongArch64 fiber support for Wasmtime.

This fixes the runtime error:

fibers not supported on this host architecture

by implementing the required stack switching and unwind support for LoongArch64.

Procedure Call Standard for the LoongArch™ Architecture: https://github.com/loongson/la-abi-specs/blob/release/lapcs.adoc#processor-architecture

@heiher heiher requested a review from a team as a code owner June 17, 2026 08:55
@heiher heiher requested review from dicej and removed request for a team June 17, 2026 08:55

@alexcrichton alexcrichton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Could you add a check to this matrix that this crate builds on loongarch64?

Additionally, to confirm, have you run the fiber tests locally and double-checked they're passing?

@alexcrichton alexcrichton requested review from alexcrichton and removed request for dicej June 17, 2026 14:42
@heiher heiher requested a review from a team as a code owner June 18, 2026 07:58
@heiher

heiher commented Jun 18, 2026

Copy link
Copy Markdown
Author

Thanks! Could you add a check to this matrix that this crate builds on loongarch64?

Thanks! Done.

Additionally, to confirm, have you run the fiber tests locally and double-checked they're passing?

Yes, I've run the fiber tests locally and they all passed.

Comment on lines -659 to +664
run: |
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall --no-confirm cross
run: cargo install cross --git https://github.com/cross-rs/cross

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does the published release of cross not support loongarch64? If so could this run cargo check insetad of cross build?

(switching to cargo install makes CI more flaky and take longer)

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.

2 participants