diff options
| author | Camille Mougey <commial@gmail.com> | 2018-03-05 13:18:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-05 13:18:22 +0100 |
| commit | 342614c1ec4bedd5bcc089ba01909a66b9a73aba (patch) | |
| tree | 683728881150e2406849bcc1e1c13c62bc0b6d44 /miasm2/arch/ppc/ira.py | |
| parent | a3013003b9f77b017036bd1d46797052d875efbe (diff) | |
| parent | 5d5c768db62da037d156808f528cf9c1e14db8ab (diff) | |
| download | miasm-342614c1ec4bedd5bcc089ba01909a66b9a73aba.tar.gz miasm-342614c1ec4bedd5bcc089ba01909a66b9a73aba.zip | |
Merge pull request #690 from serpilliere/integrate_ppc
Integrate ppc
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/ppc/ira.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/miasm2/arch/ppc/ira.py b/miasm2/arch/ppc/ira.py index 2459c0e4..76a979ae 100644 --- a/miasm2/arch/ppc/ira.py +++ b/miasm2/arch/ppc/ira.py @@ -22,6 +22,19 @@ class ir_a_ppc32b(ir_ppc32b, ira): for irblock in leaves: self.set_dead_regs(irblock) + def call_effects(self, ad, instr): + return [AssignBlock([ExprAff(self.ret_reg, ExprOp('call_func_ret', ad, + self.sp, + self.arch.regs.R3, + self.arch.regs.R4, + self.arch.regs.R5, + )), + ExprAff(self.sp, ExprOp('call_func_stack', + ad, self.sp)), + ], + instr + )] + def pre_add_instr(self, block, instr, assignments, ir_blocks_all, gen_pc_update): """Replace function call with corresponding call effects, inside the IR block""" |