diff options
| author | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-10-14 09:09:29 +0000 |
|---|---|---|
| committer | Theofilos Augoustis <theofilos.augoustis@gmail.com> | 2025-10-14 09:09:29 +0000 |
| commit | 579cf1d03fb932083e6317967d1613d5c2587fb6 (patch) | |
| tree | 629f039935382a2a7391bce9253f6c9968159049 /miasm/arch/aarch64/lifter_model_call.py | |
| parent | 51c15d3ea2e16d4fc5f0f01a3b9befc66b1f982e (diff) | |
| download | focaccia-miasm-ta/nix.tar.gz focaccia-miasm-ta/nix.zip | |
Convert to src-layout ta/nix
Diffstat (limited to 'miasm/arch/aarch64/lifter_model_call.py')
| -rw-r--r-- | miasm/arch/aarch64/lifter_model_call.py | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/miasm/arch/aarch64/lifter_model_call.py b/miasm/arch/aarch64/lifter_model_call.py deleted file mode 100644 index 74f25969..00000000 --- a/miasm/arch/aarch64/lifter_model_call.py +++ /dev/null @@ -1,50 +0,0 @@ -#-*- coding:utf-8 -*- - -from miasm.ir.analysis import LifterModelCall -from miasm.arch.aarch64.sem import Lifter_Aarch64l, Lifter_Aarch64b - - -class LifterModelCallAarch64lBase(Lifter_Aarch64l, LifterModelCall): - - def __init__(self, loc_db): - Lifter_Aarch64l.__init__(self, loc_db) - self.ret_reg = self.arch.regs.X0 - - -class LifterModelCallAarch64bBase(Lifter_Aarch64b, LifterModelCall): - - def __init__(self, loc_db): - Lifter_Aarch64b.__init__(self, loc_db) - self.ret_reg = self.arch.regs.X0 - - -class LifterModelCallAarch64l(LifterModelCallAarch64lBase): - - def __init__(self, loc_db): - LifterModelCallAarch64lBase.__init__(self, loc_db) - self.ret_reg = self.arch.regs.X0 - - def get_out_regs(self, _): - return set([self.ret_reg, self.sp]) - - def sizeof_char(self): - return 8 - - def sizeof_short(self): - return 16 - - def sizeof_int(self): - return 32 - - def sizeof_long(self): - return 32 - - def sizeof_pointer(self): - return 32 - - -class LifterModelCallAarch64b(LifterModelCallAarch64bBase, LifterModelCallAarch64l): - - def __init__(self, loc_db): - LifterModelCallAarch64bBase.__init__(self, loc_db) - self.ret_reg = self.arch.regs.X0 |