2

Is there a tool to automatically convert binutils cpu definitions (.cpu / .opc files) to sleigh for use in Ghidra? ... or do I need to hand craft a cpu definition for Synopsys DesignWare ARC 625D?

2
  • That would be an interesting project, not aware of anything like that currently for Ghidra. The information there would also only produce enough SLEIGH for disassembly. You'd have to still implement the instructions for any analysis or decompilation. – mumbel Feb 14 '20 at 19:48
  • took a second look, it does look like it a .cpu could have enough to implement the instruction and not just the display and bit-patterns. Ignoring the conversion, it would still come down to finding a correctly/full implementation in a .cpu format, not seeing to many – mumbel Feb 15 '20 at 4:31
1

There was a project of using these files to create a processor module for IDA, maybe you can reuse parts of it.

1
  • Thank you for the pointer! After a bit more research: - there does not seem to be a ready to use tool for the conversion; - it should be possible to create such a tool, but it is non-trivial. For a single processor module, it may well be quicker to hand craft the module. Still, I might have a go at automating at least part of the process... – ZJL Feb 22 '20 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.