-
Notifications
You must be signed in to change notification settings - Fork 164
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
add riscv32i target #30
Conversation
Hmm. I do not see |
Patch the Rust compiler as well, e.g. https://git.m-labs.hk/M-Labs/HeavyX/commit/033659344f1bdfcc893fee13156bb224872bb4a4 |
Could you upstream this first? It should be an easy task. |
Also double-check that you are targeting softcores with Privileged Architecture Version 1.10 support. These crates ( |
I added riscv32i-unknown-none-elf to Rust, so I can merge this in a day if you still need it. However, this PR needs to be rebased first. |
Thanks! |
Couldn't test since rust-embedded/riscv-rt#31 broke rust-embedded/riscv-rt#34 |
Yes, we need to figure out what to do with that mul instruction on riscv32i |
As it'd be only a small iteration up to # of harts, won't lose much by replacing it with a loop, maybe conditionally on non-M. |
Sure, the change is not difficult, but it needs to be done for corresponding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
bors r+ |
Build succeeded |
This adds support for the simplest RISC-V processor possible, which is useful e.g. for experimenting with FPGA softcore implementations.