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/msp430/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 'miasm2/arch/msp430/ira.py')
| -rw-r--r-- | miasm2/arch/msp430/ira.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/miasm2/arch/msp430/ira.py b/miasm2/arch/msp430/ira.py index bf777775..071bfae8 100644 --- a/miasm2/arch/msp430/ira.py +++ b/miasm2/arch/msp430/ira.py @@ -34,30 +34,6 @@ class ir_a_msp430(ir_a_msp430_base): b.rw[-1][1].add(self.arch.regs.cpuoff) b.rw[-1][1].add(self.arch.regs.gie) - def post_add_bloc(self, bloc, ir_blocs): - ir.post_add_bloc(self, bloc, ir_blocs) - l = bloc.lines[-1] - if not l.is_subcall(): - return - - for irb in ir_blocs: - pc_val = None - for assignblk in irb.irs: - pc_val = assignblk.get(PC, pc_val) - if pc_val is None: - continue - - l = bloc.lines[-1] - lbl = bloc.get_next() - new_lbl = self.gen_label() - irs = self.call_effects(pc_val, l) - irs.append(AssignBlock([ExprAff(self.IRDst, - ExprId(lbl, size=self.pc.size))])) - nbloc = irbloc(new_lbl, irs) - nbloc.lines = [l] * len(irs) - self.blocs[new_lbl] = nbloc - irb.dst = ExprId(new_lbl, size=self.pc.size) - def get_out_regs(self, b): return set([self.ret_reg, self.sp]) |