-
Notifications
You must be signed in to change notification settings - Fork 561
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
i#3544 RV64: Added an encoder and some fixes and improvments to the decoder #6095
Conversation
Register names and DR_REG enums are 1-to-1 mapped, must correspond strictly.
This patch fixes the instr create API for store instructions. Destination register needs to be last, not first. Issue: DynamoRIO#3544
I wrote a simple test case in the above commits to check if things work ok, now I can use I noticed that the RISC-V version of
I'm guessing it's a CMake mistake, but I'm not familiar with CMake, do you know what's possibly wrong? @abhinav92003 @derekbruening, thanks. |
If there's no init what is the entry point then? Is there no libc setup code? Missing cross toolchain pieces? I would build a simple C app with a main directly and if it works I would examine its entry point and startup code and then start diffing the build commands between it and api.ir. |
Thank you! According to what you said, I noticed RISC-V gcc does not generate |
I've added unit tests for the encoder and decoder and also enabled them in CI. Please review again, thanks! |
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.
Thank you for adding tests! Just a few comments/suggestions.
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.
Thank you for making the requested changes, it looks good.
@derekbruening Hi, I successfully ran a simple hello world on RISC-V, but the size of the patch is relatively large. Is it better to split it into small PRs and submit them separately? This is probably not the right place to ask this kind of question, please let me know if there are other recommended ways. |
Smaller is always better: easier and faster to review; easier to isolate and revert if something goes wrong. |
This patch added the following changes:
Issue: #3544