diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-10-23 11:26:37 +0200 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-10-23 13:29:06 +0200 |
| commit | dcf8369b123ec2fdfc3a0120b46d0770b8fba7c0 (patch) | |
| tree | d1a7c3d20e50f259013ef94da0d73f8f0b3077be /miasm2/jitter/jitcore.py | |
| parent | 2b2858a975031aad5abdfaf6dcb123f7edee5ba1 (diff) | |
| download | miasm-dcf8369b123ec2fdfc3a0120b46d0770b8fba7c0.tar.gz miasm-dcf8369b123ec2fdfc3a0120b46d0770b8fba7c0.zip | |
JitTCC: loop in C while future basic blocks are known
Diffstat (limited to 'miasm2/jitter/jitcore.py')
| -rw-r--r-- | miasm2/jitter/jitcore.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/miasm2/jitter/jitcore.py b/miasm2/jitter/jitcore.py index a3a91d76..afd80149 100644 --- a/miasm2/jitter/jitcore.py +++ b/miasm2/jitter/jitcore.py @@ -153,17 +153,16 @@ 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 """ + # TODO useless vmmngr + 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 +177,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 |