-
-
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
Add (partial) support for RISC-V #21
Conversation
Hey Thomas, thanks for the PR! I'm don't think I'll get the chance to give the code a proper review today, but from a quick glance, the That said, could you please split the |
7bd3f92
to
893c5cb
Compare
Thanks! I forced-pushed the |
Introduces support for **integer** RISC-V ISA.
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.
Just a couple of doc-related nits, but other than that, this LGTM 👍
Thanks for the reviews! I hope I fixed them :) Let me know if you want me to rebase into a single commit before merging. |
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.
Nice! Lets ship it 🚢
Alright, it's merged in 🎉 A couple of post-merge comments:
|
Thanks Daniel for the merge and the suggestions ! I planned to start with two different structs as you suggest. AFAIK, RISC-V extensions do not add general registers (they may introduce control register though (CSR), but I think GDB would query them through a single read register 'p' command). I think with and without FP cover 90% of RISC-V use cases ! I have no urgency to have it upstream on |
Hey,
This PR contains two commits:
Arch
trait for RISC-V 32/64 bitCurrently I have a RISC-V softfp toolchain for testing. I will try to add support for floating-point RISC-V 32 and 64 as well soon.
Let me know if the commits need some rework.
Thanks for your awesome
gdbstub
crate, it works like a charm on my emulator !Thomas.