Skip to content

Do not fallback to "arm" in rustup-init.sh on aarch64 with 32-bit userland #3488

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

alex
Copy link
Member

@alex alex commented Sep 22, 2023

On aarch64, neon will not be present in /proc/cpuinfo, instead asimd is there. Previously, we'd fall back to arm when running with a 32-bit userland, even though armv7 is perfectly appropriate in this case.

This would then run into the issue described in rust-lang/rust#58414 with "CP15 barrier emulation".

This PR fixes that.

…rland

On aarch64, neon will not be present in /proc/cpuinfo, instead asimd is there. Previously, we'd fall back to arm when running with a 32-bit userland, even though armv7 is perfectly appropriate in this case.

This would then run into the issue described in rust-lang/rust#58414 with "CP15 barrier emulation".

This PR fixes that.
Copy link
Member

@rami3l rami3l left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@rami3l rami3l merged commit 303c6f9 into rust-lang:master Oct 5, 2023
@alex alex deleted the patch-1 branch October 5, 2023 12:23
@djc djc mentioned this pull request Oct 5, 2023
@rami3l rami3l mentioned this pull request Jan 29, 2024
1 task
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants