uweigand opened PR #11220 from uweigand:s390x-facility-refactor to bytecodealliance:main:
This patch implements a number of changes relating to s390x HW facilities and facility detection:
Fix a mis-named facility: the z15 (arch13) CPU introduced the Miscellaneous-Instruction-Extensions Facility 3 (not 2). Rename "mie2" to "mie3" throughout the code base.
Now that we can use inline asm, use the STORE FACILITY LIST EXTENDED instruction rather than HWCAP to detect facilities at run time. This eliminates the libc crate dependency, and allows for more fine-grained feature detection.
Add support for the z16 (arch14) CPU names (these do not provide any facilities that would be relevant to cranelift, but it should be possible to use these names as synonyms to z15 at least).
Add support for the z17 (arch15) CPU names, and two new facilities provided at this level: the Miscellaneous-Instruction-Extensions Facility 4 and the Vector-Enhancements Facility 3. (Note that no code to exploit these facilities is present in this patch; that will be provided later.)
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
uweigand requested cfallin for a review on PR #11220.
uweigand requested wasmtime-compiler-reviewers for a review on PR #11220.
uweigand requested dicej for a review on PR #11220.
uweigand requested wasmtime-core-reviewers for a review on PR #11220.
cfallin submitted PR review:
LGTM, thanks!
cfallin has enabled auto merge for PR #11220.
cfallin merged PR #11220.
Last updated: Dec 06 2025 at 06:05 UTC