capstone icon indicating copy to clipboard operation
capstone copied to clipboard

Attempt to fix TriCore missing registers

Open Rot127 opened this issue 1 year ago • 2 comments

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

...

Rot127 avatar Oct 06 '24 14:10 Rot127

@imbillow what do you think about this one?

XVilka avatar Oct 15 '24 16:10 XVilka

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;

b1llow avatar Oct 16 '24 05:10 b1llow