Skip to content

Commit

Permalink
Hack: PCode-AIL lifting now drops all statements after calls for SPAR…
Browse files Browse the repository at this point in the history
…C32.
  • Loading branch information
ltfish authored and mborgerson committed Jan 10, 2024
1 parent d7f2020 commit 14923f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ailment/converter_pcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ def _convert(self) -> Block:
self._convert_current_op()
self._statement_idx += 1

if "sparc:" in self._irsb.arch.name and self._irsb.arch.bits == 32:
if self._current_op.opcode == OpCode.CALL:
break

return Block(self._irsb.addr, self._irsb.size, statements=self._statements)

def _convert_current_op(self) -> None:
Expand Down

0 comments on commit 14923f6

Please sign in to comment.