diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-12-25 22:23:01 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-12-25 22:23:01 +0100 |
| commit | 1d95a7febaee8c53df432cdbf1539f6f58a4d5d9 (patch) | |
| tree | 4afb9c40cc0aad93a3a5d26bb84f487da5a667e2 /miasm/arch/mep/jit.py | |
| parent | 972cad3a89d2856a6969328a9870a1b472cd9fd2 (diff) | |
| download | focaccia-miasm-1d95a7febaee8c53df432cdbf1539f6f58a4d5d9.tar.gz focaccia-miasm-1d95a7febaee8c53df432cdbf1539f6f58a4d5d9.zip | |
Rename ir_arch for jitter
Diffstat (limited to 'miasm/arch/mep/jit.py')
| -rw-r--r-- | miasm/arch/mep/jit.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/miasm/arch/mep/jit.py b/miasm/arch/mep/jit.py index e3cd2428..3fee2537 100644 --- a/miasm/arch/mep/jit.py +++ b/miasm/arch/mep/jit.py @@ -24,10 +24,10 @@ class mep_CGen(CGen): Note: it is used to emulate the *REPEAT instructions """ - def __init__(self, ir_arch): - self.ir_arch = ir_arch - self.PC = self.ir_arch.arch.regs.PC - self.translator = TranslatorC(self.ir_arch.loc_db) + def __init__(self, lifter): + self.lifter = lifter + self.PC = self.lifter.arch.regs.PC + self.translator = TranslatorC(self.lifter.loc_db) self.init_arch_C() def gen_pre_code(self, attrib): @@ -79,7 +79,7 @@ class jitter_mepl(Jitter): def __init__(self, loc_db, *args, **kwargs): Jitter.__init__(self, Lifter_MEPl(loc_db), *args, **kwargs) self.vm.set_little_endian() - self.ir_arch.jit_pc = self.ir_arch.arch.regs.PC + self.lifter.jit_pc = self.lifter.arch.regs.PC def push_uint16_t(self, v): regs = self.cpu.get_gpreg() @@ -109,4 +109,4 @@ class jitter_mepb(jitter_mepl): def __init__(self, loc_db, *args, **kwargs): Jitter.__init__(self, Lifter_MEPb(loc_db), *args, **kwargs) self.vm.set_big_endian() - self.ir_arch.jit_pc = self.ir_arch.arch.regs.PC + self.lifter.jit_pc = self.lifter.arch.regs.PC |