Skip to content
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

detect: Support run-time detection of FEAT_LSE on aarch64 OpenBSD #64

Merged
merged 3 commits into from
Jan 26, 2023

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Jan 25, 2023

As of nightly-2023-01-23, is_aarch64_feature_detected doesn't support run-time detection of FEAT_LSE on OpenBSD.

This patch also supports run-time detection of FEAT_LSE on aarch64 FreeBSD without "std" feature.

This patch also adds preliminary support for run-time detection of FEAT_LSE2 and FEAT_LSE128. This is currently only used in tests but will be used in the library in the future.

As well as #63, I will send a patch to stdarch later. Filed rust-lang/stdarch#1374.

@taiki-e taiki-e added the O-arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state label Jan 25, 2023
@taiki-e taiki-e force-pushed the aarch64-bsd branch 3 times, most recently from 77bc799 to 7d90fba Compare January 25, 2023 15:23
@taiki-e taiki-e changed the title detect: Support detecting FEAT_LSE on aarch64 OpenBSD detect: Support run-time detection of FEAT_LSE on aarch64 OpenBSD Jan 25, 2023
@taiki-e taiki-e force-pushed the aarch64-bsd branch 9 times, most recently from 6601623 to 601b4dd Compare January 26, 2023 16:08
This also supports run-time detection of FEAT_LSE on aarch64 FreeBSD
without "std" feature.

This also adds preliminary support for run-time detection of FEAT_LSE2
and FEAT_LSE128. This is currently only used in tests but will be used
in the library in the future.
@taiki-e
Copy link
Owner Author

taiki-e commented Jan 26, 2023

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 26, 2023

@bors bors bot merged commit ca6032b into main Jan 26, 2023
@bors bors bot deleted the aarch64-bsd branch January 26, 2023 17:48
bors bot added a commit that referenced this pull request Jan 28, 2023
65: tests: Implement mechanism to detect API changes by OS r=taiki-e a=taiki-e

Follow-up #64

Run-time feature detection on aarch64 usually requires the use of platform APIs, and we define our own FFI bindings to those APIs.

We use only one function and a few constants per platform, but technically OS can change these APIs so it is preferable to be able to detect them.

Co-authored-by: Taiki Endo <[email protected]>
taiki-e added a commit that referenced this pull request Feb 12, 2023
This removes the use of `is_aarch64_feature_detected`. (As of nightly-2023-02-08, we already support all targets supported by `is_aarch64_feature_detected`, plus more. Some of them have already been upstreamed such as #63 and #64, they will be available in the future nightly.)
taiki-e added a commit that referenced this pull request Feb 12, 2023
This removes the use of `is_aarch64_feature_detected`. (As of nightly-2023-02-08, we already support all targets supported by `is_aarch64_feature_detected`, plus more. Some of them have already been upstreamed such as #63 and #64, they will be available in the future nightly.)
@taiki-e taiki-e added the O-aarch64 Target: Armv8-A, Armv8-R, or later processors in AArch64 mode label Sep 2, 2024
@taiki-e taiki-e removed the O-arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-aarch64 Target: Armv8-A, Armv8-R, or later processors in AArch64 mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant