diff options
Diffstat (limited to 'miasm2/jitter/jitcore_llvm.py')
| -rw-r--r-- | miasm2/jitter/jitcore_llvm.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/miasm2/jitter/jitcore_llvm.py b/miasm2/jitter/jitcore_llvm.py index acf91d15..4f4a17c7 100644 --- a/miasm2/jitter/jitcore_llvm.py +++ b/miasm2/jitter/jitcore_llvm.py @@ -68,7 +68,7 @@ class JitCore_LLVM(jitcore.JitCore): def add_bloc(self, bloc): # Search in IR cache - if self.options["cache_ir"] is not None: + if False and self.options["cache_ir"] is not None: # /!\ This part is under development # Use it at your own risk @@ -153,3 +153,11 @@ class JitCore_LLVM(jitcore.JitCore): # Store a pointer on the function jitted code self.lbl2jitbloc[label.offset] = func.get_function_pointer() + + def jit_call(self, label, cpu, _vmmngr, breakpoints): + """Call the function label with cpu and vmmngr states + @label: function's label + @cpu: JitCpu instance + @breakpoints: Dict instance of used breakpoints + """ + return self.exec_wrapper(self.lbl2jitbloc[label], cpu, cpu.vmmngr.vmmngr) |