capstone
capstone copied to clipboard
Attempt to fix TriCore missing registers
Your checklist for this pull request
- [ ] I've documented or updated the documentation of every API function and struct this PR changes.
- [ ] I've added tests that prove my fix is effective or that my feature works (if possible)
Detailed description
...
Test plan
...
Closing issues
...
@imbillow what do you think about this one?
The bits used for checking in function TriCoreGenAsmWriter.inc::printInstruction() seem to be calculated this way.
// Emit the opcode for the instruction.
uint64_t Bits = 0;
Bits |= (uint64_t)OpInfo0[MCInst_getOpcode(MI)] << 0;
Bits |= (uint64_t)OpInfo1[MCInst_getOpcode(MI)] << 32;