-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
riscv: Support RMW when zaamo enabled (even when unsafe-assume-single-core disabled) #185
Conversation
Thanks for this contribution! It will improve my life significantly |
9a4b763
to
afe806f
Compare
afe806f
to
dbde491
Compare
Hi, @taiki-e ! I'm trying out your latest work and wanted to share with you the actual status. With rust version 1.83.0-nightly (363ae4188 2024-09-24)When not enabling any RUSTFLAGS="-C target-feature=+zaamo" cargo build --target riscv32imc-unknown-none-elf My project builds successfully. However, I get the following warning:
When enabling the
I get the following build error:
With rust version 1.83.0-stableWhen not enabling any RUSTFLAGS="-C target-feature=+zaamo" cargo build --target riscv32imc-unknown-none-elf My project builds successfully. However, I get tens of these warnings:
IssueLooks like the ProposalWhat do you think about adding a new Cargo feature, let's say |
Thanks for the feedback! First, I should talk about what the warnings are that you are encountering:
Therefore, I believe that effectively the only problem that results is that the warnings are annoying or confusing.
That said, there is already a working way to silence the warning in all situations, and that is to use Since target_feature is unsafe in general (and so is zaamo), and given that there are already more than 10 target features in a similar situations, I'm not very positive about adding such a target feature as a Cargo feature. |
Thank you so much for your explanation, it is way more clear for me. I adapted the |
Published in 1.9.0. Since this PR, there have been two related changes (both are included in 1.9.0):
|
Addresses #123 (comment)
cc @romancardenas