keystone-engine / keystone

Keystone assembler framework: Core (Arm, Arm64, Hexagon, Mips, PowerPC, Sparc, SystemZ & X86) + bindings
http://www.keystone-engine.org
GNU General Public License v2.0
2.31k stars 459 forks source link

update Mips CPU to Mips r6 #587

Open Mez0ne opened 2 months ago

Mez0ne commented 2 months ago

The current MIPS CPU selections are "mips32" and "mips64." In this case, several instructions, such as "dext," are not supported. Therefore, it is necessary to upgrade the CPU in the code to "mips32r6" and "mips64r6" in order to support more instructions.

Such changes appear in LLVM in a similar form: https://github.com/llvm/llvm-project/blob/78fa41524b6f6e2696ff21ec50e760311ac939a3/llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp#L49