Skip to content

Conversation

moste00
Copy link

@moste00 moste00 commented Jul 17, 2025

This PR is a WIP to add RISCV support and fixes to LLVM so that the Capstone RISCV module is Auto-Syncable. This is in support of capstone-engine/capstone#2756

@Rot127 Rot127 changed the base branch from auto-sync to auto-sync-18 August 25, 2025 13:29
Comment on lines +776 to +778
if (!(B < E)) {
return;
}
Copy link
Collaborator

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.

Copy link
Author

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?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I meant issue.

Comment on lines +963 to +977
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);
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants