about summary refs log tree commit diff stats
path: root/miasm2/arch/arm/ira.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2017-01-05 15:37:58 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2017-01-06 14:15:15 +0100
commite9494c09013290a382b90e84cd363567d166f687 (patch)
treec6a973dd87be704676d588d5ca0a25b0e0c2535b /miasm2/arch/arm/ira.py
parentafdeb68de2b634c600c30f61422f9fd59286376c (diff)
downloadmiasm-e9494c09013290a382b90e84cd363567d166f687.tar.gz
miasm-e9494c09013290a382b90e84cd363567d166f687.zip
IR: Call_effects API modification
Old API:
    def call_effects(self, addr):
New API:
    def call_effects(self, addr, instr):

The addr is the address of the called function
'instr' is the instruction responsible for the call.
The new API is a bit more flexible for model a function.
Diffstat (limited to '')
-rw-r--r--miasm2/arch/arm/ira.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/arch/arm/ira.py b/miasm2/arch/arm/ira.py
index b279fab5..7d8e1838 100644
--- a/miasm2/arch/arm/ira.py
+++ b/miasm2/arch/arm/ira.py
@@ -53,7 +53,7 @@ class ir_a_arml(ir_a_arml_base):
             # CALL
             lbl = bloc.get_next()
             new_lbl = self.gen_label()
-            irs = self.call_effects(pc_val)
+            irs = self.call_effects(pc_val, l)
             irs.append(AssignBlock([ExprAff(self.IRDst,
                                             ExprId(lbl, size=self.pc.size))]))
             nbloc = irbloc(new_lbl, irs)