Skip to content

std_detect: Support run-time detection of FEAT_LSE2 on aarch64 BSD #1379

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

Merged
merged 1 commit into from
Feb 11, 2023

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Feb 10, 2023

If FEAT_LSE2 is implemented, AT field of ID_AA64MMFR2_EL1 is 0b0001. https://developer.arm.com/documentation/ddi0601/2022-12/AArch64-Registers/ID-AA64MMFR2-EL1--AArch64-Memory-Model-Feature-Register-2?lang=en#fieldset_0-35_32

Also, if FEAT_LSE is implemented, Atomic field of ID_AA64ISAR0_EL1 is >= 0b0010, not >= 0b0001. (0b0001 is reserved) This patch fixes it too.
https://developer.arm.com/documentation/ddi0601/2022-12/AArch64-Registers/ID-AA64ISAR0-EL1--AArch64-Instruction-Set-Attribute-Register-0?lang=en#fieldset_0-23_20

@rustbot
Copy link
Collaborator

rustbot commented Feb 10, 2023

r? @Amanieu

(rustbot has picked a reviewer for you, use r? to override)

@taiki-e taiki-e force-pushed the std-detect-aarch64-bsd-lse2 branch from 8ca3a59 to d090379 Compare February 10, 2023 22:09
@Amanieu Amanieu merged commit f2ce94c into rust-lang:master Feb 11, 2023
@taiki-e taiki-e deleted the std-detect-aarch64-bsd-lse2 branch February 11, 2023 17:33
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.

4 participants