diff options
| author | Ajax <commial@gmail.com> | 2017-01-19 20:53:23 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2017-01-24 13:46:38 +0100 |
| commit | 69baa6b83d9a2404ea33f3d16e2b25cfb3ef7caf (patch) | |
| tree | b3faa556710baee385981bb4c1a5227cbf391149 /miasm2/arch/mips32/ira.py | |
| parent | 5ad8e8b70b1ed1ba6f38f2e4b070154e717cbd05 (diff) | |
| download | miasm-69baa6b83d9a2404ea33f3d16e2b25cfb3ef7caf.tar.gz miasm-69baa6b83d9a2404ea33f3d16e2b25cfb3ef7caf.zip | |
Let x86 'pre_add_instr' be the default behavior
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/mips32/ira.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/miasm2/arch/mips32/ira.py b/miasm2/arch/mips32/ira.py index ec63c8c7..8f7b2df3 100644 --- a/miasm2/arch/mips32/ira.py +++ b/miasm2/arch/mips32/ira.py @@ -17,6 +17,10 @@ class ir_a_mips32l(ir_mips32l, ira): def set_dead_regs(self, b): pass + def pre_add_instr(self, block, instr, irb_cur, ir_blocks_all, gen_pc_updt): + # Avoid adding side effects, already done in post_add_bloc + return irb_cur + def post_add_bloc(self, bloc, ir_blocs): ir.post_add_bloc(self, bloc, ir_blocs) for irb in ir_blocs: |