-
Notifications
You must be signed in to change notification settings - Fork 17
Adding RISCV to supported architectures #83
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
base: auto-sync-18
Are you sure you want to change the base?
Conversation
…s immediate operands
if (!(B < E)) { | ||
return; | ||
} |
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 add a comment so we don't forget about it.
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.
I think the //HACK! one is enough? you mean another comment?
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.
Sorry, I meant issue.
patchSTIObject(TargetName, PatchedCode); | ||
|
||
patchAddOperandGetOperand(TargetName, PatchedCode); | ||
patchIsGetOperand(TargetName, PatchedCode); // must be after patchAddOperandGetOperand | ||
patchAddOperandCreateOperand(TargetName, PatchedCode); | ||
|
||
patchRegClassContains(TargetName, PatchedCode); | ||
|
||
patchSetLoc(TargetName, PatchedCode); | ||
patchEvaluateAsConstantImm(TargetName, PatchedCode); | ||
|
||
patchSetOpcode(TargetName, PatchedCode); | ||
patchGetOpcode(TargetName, PatchedCode); | ||
patchIsBareSymbolRef(TargetName, PatchedCode); | ||
patchIsUintIsShiftedUInt(TargetName, PatchedCode); |
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.
Better wrap this into a the TargetName == "RSICV"
block.
Just in case the regex matches something else and other archs break.
This PR is a WIP to add RISCV support and fixes to LLVM so that the Capstone RISCV module is
Auto-Sync
able. This is in support of capstone-engine/capstone#2756