Skip to content

Commit

Permalink
Add implicit reads and writes of SP to POP and PUSH.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Aug 5, 2023
1 parent 9e0144d commit 3c5abfd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/ARM/ARMMapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,15 @@ static void ARM_add_not_defined_ops(MCInst *MI)
ARM_get_detail(MI)->operands[0].access |= CS_AC_WRITE;
MI->flat_insn->detail->writeback = true;
}
break;
}
}
if (MI->flat_insn->id == ARM_INS_PUSH ||
MI->flat_insn->id == ARM_INS_POP ||
MI->flat_insn->id == ARM_INS_VPUSH ||
MI->flat_insn->id == ARM_INS_VPOP) {
map_add_implicit_read(MI, ARM_REG_SP);
map_add_implicit_write(MI, ARM_REG_SP);
}
}

Expand Down

0 comments on commit 3c5abfd

Please sign in to comment.