-
Notifications
You must be signed in to change notification settings - Fork 50
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
feat(build): Adjust RV target - riscv64g
-> riscv64ima
#868
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files☔ View full report in Codecov by Sentry. |
I wonder if there is a way to exclude Zicsr instructions from the build. The LLVM docs are unclear about it:
It would make sense to also exclude these instructions as they are not supported by Asterisc. |
Yep, can turn these off. Note that |
Overview
Note
I validated locally that this target works out fine for running on asterisc, but will need to cut a release of the
asterisc-builder
cross compilation image for this to pass CI. Will do after vaca.For anyone who wants to experiment with this, head over to the
build
dir, and build the asterisc image locally w/just asterisc
. Then, head over to the rootjustfile
, and adjust thebuild-asterisc
recipe to use the localasterisc-pipeline:latest
image that was built in the previous step.Once this is done, head over to
bin/client
, and run kona on asterisc w/just run-client-asterisc
to use the newriscv64ima
binary.e: A new image was manually published. This is good to go.
Adjusts the build pipeline to use
riscv64imac-unknown-none-elf
as the target rather thanriscv64gc
. We still turn offc
ompressed instructions, but this target forces LLVM to use soft-float operations for anyf
loating point /d
oubleword floating point operations.