about summary refs log tree commit diff stats
path: root/miasm2/arch/mips32/ira.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2017-01-29 15:39:12 +0100
committerGitHub <noreply@github.com>2017-01-29 15:39:12 +0100
commitf29701d3965d2e307fb085dff0593b150001682d (patch)
tree3924b6b59d624747a4817b62efb6ed6fa6d376fe /miasm2/arch/mips32/ira.py
parentf0ceb21611c5ca5f218b21bcc2de5108bf0f9c35 (diff)
parent69baa6b83d9a2404ea33f3d16e2b25cfb3ef7caf (diff)
downloadmiasm-f29701d3965d2e307fb085dff0593b150001682d.tar.gz
miasm-f29701d3965d2e307fb085dff0593b150001682d.zip
Merge pull request #478 from commial/refactor/pre_add_instr
Let x86 'pre_add_instr' be the default behavior
Diffstat (limited to '')
-rw-r--r--miasm2/arch/mips32/ira.py4
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: