Conversation
There was a problem hiding this comment.
Please keep in mind the LITBASE mechanic Xtensa has.
No other disassembler seems to support it. So it would be nice if CS gives at least an option to take care of it.
See: https://youtu.be/QMO2vMBcx7Y?feature=shared&t=808
|
@imbillow what LLVM version you have used as a base for this PR? Mainstream LLVM 18? Or a fork from developers working on the Xtensa patches? |
I'm using the auto-sync branch of llvm-capstone, I think it's llvm-18, I'm not sure. |
|
It is LLVM 18. Please quickly diff the |
|
@imbillow please rebase one more time |
Rot127
left a comment
There was a problem hiding this comment.
Nice, almost done!
Except the few comments. Please add Xtensa to the .github/workflows/auto-sync.yml where the other archs are.
And of course fix the CI please.
Then we are ready to merge.
| // generated content <XtensaGenCSFeatureEnum.inc> begin | ||
| // clang-format off | ||
|
|
||
| XTENSA_FEATURE_HASDENSITY = 128, |
There was a problem hiding this comment.
Please clang-format the file.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
@imbillow I fixed some issue while being at it: b1llow#1 Please check this issue here with Also, it is weird. But in the CI it builds Xtensa without my edits. But it shouldn't because those macros don't exist. Or did you add them and I just overlooked them? |
- fix MCExpr - fix Xtensa_add_cs_detail - add `add_cs_detail` - add `MCExpr *MCOperand_getExpr(const MCOperand *MC)` `void printExpr(const MCExpr *E, SStream *O)` autosync fix - fix StreamOperation.py - replace `report_fatal_error` with `CS_ASSERT` - fix patch StreamOperation.py - replace `assert` with `CS_ASSERT` - fix AddCSDetail.py - fix QualifiedIdentifier
|
The clang-tidy warnings are a false positive, because |
|
|
Your checklist for this pull request
Detailed description
...
Test plan
...
Closing issues
...