about summary refs log tree commit diff stats
path: root/miasm2/jitter/jitcore_llvm.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-12-23 16:37:16 +0100
committerAjax <commial@gmail.com>2017-01-04 17:14:55 +0100
commita993473c6e2b4225c629eeb88eae98f7ee655333 (patch)
treeb816cfe6c706caffca42b052c9d69a806a9876db /miasm2/jitter/jitcore_llvm.py
parent2b93bc6682f3a08a5eccccefa135535708434f9e (diff)
downloadmiasm-a993473c6e2b4225c629eeb88eae98f7ee655333.tar.gz
miasm-a993473c6e2b4225c629eeb88eae98f7ee655333.zip
Ugly modification to have llvm work again
Diffstat (limited to 'miasm2/jitter/jitcore_llvm.py')
-rw-r--r--miasm2/jitter/jitcore_llvm.py10
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)