-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rustc does not recognize ttbr0_el2 as a valid armv8 system register #97724
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
Comments
That is an assembler error, nothing to do directly with Rust. I think your arguments are backwards. To move from Edit: upon further inspection, even with that fix, LLVM doesn't seem to recognize the |
Running the latest nightly build ( |
As the above issue says it's locked behind the |
Awesome thanks for the update! I believe the bug can be closed now.Ian KronquistOn Sep 23, 2022, at 03:38, Adam Gemmell ***@***.***> wrote:
As the above issue says it's locked behind the el2vmsa LLVM feature, which Rust doesn't directly expose. You can turn it on with the unstable v8.1a feature for now: https://godbolt.org/z/6vcd3aYEM
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
After llvm/llvm-project@8689f5e landed, LLVM takes the intersection of v8a and v8r as default. This commit brings back v8a support by explicitly specifying v8a in the feature list. This should solve rust-lang#97724.
v8a as default aarch64 target After llvm/llvm-project@8689f5e landed, LLVM takes the intersection of v8a and v8r as default. This commit brings back v8a support by explicitly specifying v8a in the feature list. This should solve rust-lang#97724. p.s. a bit more context can also be found in llvm/llvm-project#57904 (comment).
v8a as default aarch64 target After llvm/llvm-project@8689f5e landed, LLVM takes the intersection of v8a and v8r as default. This commit brings back v8a support by explicitly specifying v8a in the feature list. This should solve rust-lang#97724. p.s. a bit more context can also be found in llvm/llvm-project#57904 (comment).
I believe the code now compiles in the latest stable (1.67.0) |
Rustc does not recognize ttbr0_el2 as a valid armv8 system register.
ttbr0_el2 is used by hypervisors to configure page tables for the lower half of memory, typically used for userspace.
This fails to compile with the error:
Here is a live example on godbolt:
https://godbolt.org/z/3jsGEd59a
My rustc version is:
The text was updated successfully, but these errors were encountered: