NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
51.25k stars 5.84k forks source link

Ghidra should support MIPS Octeon-specific instructions #1772

Open wdormann opened 4 years ago

wdormann commented 4 years ago

Describe the bug Ghidra doesn't seem to decode instructions introduced in the MIPS Octeon processor. At least with the example I've seen, the instruction is decoded as SPECIAL2, whereas IDA correctly decodes it as SEQI.

To Reproduce

  1. Analyze a binary compiled for the MIPS Octeon.
  2. Look for "SPECIAL" instructions

Expected behavior No "SPECIAL" instructions.

Screenshots Ghidra: ghidra_special IDA: ida_special

Attachments If applicable, please attach any files that caused problems or log files generated by the software. libtecla.so.1.6.1.zip

Environment (please complete the following information):

wdormann commented 4 years ago

Oh, see also: https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20140331/211812.html