diff options
| author | Ajax <commial@gmail.com> | 2017-01-05 17:23:51 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2017-01-05 17:23:51 +0100 |
| commit | 7cb0c04aa97356200cf90001bfe04f8b32c84d34 (patch) | |
| tree | 4d5d0d39a68031c3888efb9252138ae715342dfb /miasm2/jitter/jitcore.py | |
| parent | 776c25a65eec254b057ea7eddf39431c4e5d1916 (diff) | |
| download | miasm-7cb0c04aa97356200cf90001bfe04f8b32c84d34.tar.gz miasm-7cb0c04aa97356200cf90001bfe04f8b32c84d34.zip | |
Jitter: remove useless VmMngr argument
Diffstat (limited to 'miasm2/jitter/jitcore.py')
| -rw-r--r-- | miasm2/jitter/jitcore.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/miasm2/jitter/jitcore.py b/miasm2/jitter/jitcore.py index f3a79bee..4a7cd9ca 100644 --- a/miasm2/jitter/jitcore.py +++ b/miasm2/jitter/jitcore.py @@ -165,7 +165,7 @@ class JitCore(object): # Update jitcode mem range self.add_bloc_to_mem_interval(vm, cur_bloc) - def jit_call(self, label, cpu, _vmmngr, breakpoints): + def jit_call(self, label, cpu, breakpoints): """Call the function label with cpu and vmmngr states @label: function's label @cpu: JitCpu instance @@ -174,10 +174,9 @@ class JitCore(object): return self.exec_wrapper(label, cpu, self.lbl2jitbloc.data, breakpoints, self.options["max_exec_per_call"]) - def runbloc(self, cpu, vm, lbl, breakpoints): + def runbloc(self, cpu, lbl, breakpoints): """Run the bloc starting at lbl. @cpu: JitCpu instance - @vm: VmMngr instance @lbl: target label """ @@ -186,10 +185,10 @@ class JitCore(object): if not lbl in self.lbl2jitbloc: # Need to JiT the bloc - self.disbloc(lbl, vm) + self.disbloc(lbl, cpu.vmmngr) # Run the bloc and update cpu/vmmngr state - ret = self.jit_call(lbl, cpu, vm, breakpoints) + ret = self.jit_call(lbl, cpu, breakpoints) return ret |