about summary refs log tree commit diff stats
path: root/miasm/arch/msp430/lifter_model_call.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm/arch/msp430/lifter_model_call.py')
-rw-r--r--miasm/arch/msp430/lifter_model_call.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/miasm/arch/msp430/lifter_model_call.py b/miasm/arch/msp430/lifter_model_call.py
deleted file mode 100644
index 05f649e5..00000000
--- a/miasm/arch/msp430/lifter_model_call.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#-*- coding:utf-8 -*-
-
-from miasm.ir.analysis import LifterModelCall
-from miasm.arch.msp430.sem import Lifter_MSP430
-from miasm.ir.ir import AssignBlock
-from miasm.expression.expression import *
-
-class LifterModelCallMsp430Base(Lifter_MSP430, LifterModelCall):
-
-    def __init__(self, loc_db):
-        Lifter_MSP430.__init__(self, loc_db)
-        self.ret_reg = self.arch.regs.R15
-
-    def call_effects(self, addr, instr):
-        call_assignblk = AssignBlock(
-            [
-                ExprAssign(self.ret_reg, ExprOp('call_func_ret', addr, self.sp, self.arch.regs.R15)),
-                ExprAssign(self.sp, ExprOp('call_func_stack', addr, self.sp))
-            ],
-            instr
-        )
-        return [call_assignblk], []
-
-class LifterModelCallMsp430(LifterModelCallMsp430Base):
-
-    def __init__(self, loc_db):
-        LifterModelCallMsp430Base.__init__(self, loc_db)
-
-    def get_out_regs(self, _):
-        return set([self.ret_reg, self.sp])
-