diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2015-10-23 14:44:01 +0200 |
|---|---|---|
| committer | serpilliere <serpilliere@users.noreply.github.com> | 2015-10-23 14:44:01 +0200 |
| commit | fb32efb74e2dc1077586a2214de558db6940b70b (patch) | |
| tree | d42a2e0744c5884b808e187eabf348a3f136afff /miasm2/jitter/jitcore.py | |
| parent | bcd4822ab014156c4977667b165072ba396d1f17 (diff) | |
| parent | 663a287f588719b0bc58c4d2a1f7e69f17ee986c (diff) | |
| download | miasm-fb32efb74e2dc1077586a2214de558db6940b70b.tar.gz miasm-fb32efb74e2dc1077586a2214de558db6940b70b.zip | |
Merge pull request #238 from commial/feature_cloop
Feature cloop
Diffstat (limited to '')
| -rw-r--r-- | miasm2/jitter/jitcore.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/miasm2/jitter/jitcore.py b/miasm2/jitter/jitcore.py index a3a91d76..46451520 100644 --- a/miasm2/jitter/jitcore.py +++ b/miasm2/jitter/jitcore.py @@ -153,17 +153,15 @@ class JitCore(object): # Update jitcode mem range self.add_bloc_to_mem_interval(vm, cur_bloc) - def jit_call(self, label, cpu, vmmngr): + def jit_call(self, label, cpu, _vmmngr, breakpoints): """Call the function label with cpu and vmmngr states @label: function's label @cpu: JitCpu instance - @vm: VmMngr instance + @breakpoints: Dict instance of used breakpoints """ + return self.exec_wrapper(label, cpu, self.lbl2jitbloc.data, breakpoints) - fc_ptr = self.lbl2jitbloc[label] - return self.exec_wrapper(fc_ptr, cpu) - - def runbloc(self, cpu, vm, lbl): + def runbloc(self, cpu, vm, lbl, breakpoints): """Run the bloc starting at lbl. @cpu: JitCpu instance @vm: VmMngr instance @@ -178,7 +176,7 @@ class JitCore(object): self.disbloc(lbl, cpu, vm) # Run the bloc and update cpu/vmmngr state - ret = self.jit_call(lbl, cpu, vm) + ret = self.jit_call(lbl, cpu, vm, breakpoints) return ret |