Skip to content

Commit

Permalink
Fix ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
ekilmer committed May 8, 2020
1 parent a7f55af commit 8ad4882
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions manticore/native/cpu/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,14 +754,11 @@ def set_arm_tls(self, data):
@staticmethod
def canonicalize_instruction_name(instr):
name = instr.insn_name().upper()
# XXX bypass a capstone bug that incorrectly labels some insns as mov
if name == "MOV":
if instr.mnemonic.startswith("lsr"):
return "LSR"
elif instr.mnemonic.startswith("lsl"):
return "LSL"
elif instr.mnemonic.startswith("asr"):
return "ASR"
# FIXME: Workaround https://github.com/aquynh/capstone/issues/1630
if instr.mnemonic == "addw":
return "ADDW"
elif instr.mnemonic == "subw":
return "SUBW"
return OP_NAME_MAP.get(name, name)

def _wrap_operands(self, operands):
Expand Down

0 comments on commit 8ad4882

Please sign in to comment.