about summary refs log tree commit diff stats
path: root/miasm2/jitter/jitcore_python.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2017-01-05 17:23:51 +0100
committerAjax <commial@gmail.com>2017-01-05 17:23:51 +0100
commit7cb0c04aa97356200cf90001bfe04f8b32c84d34 (patch)
tree4d5d0d39a68031c3888efb9252138ae715342dfb /miasm2/jitter/jitcore_python.py
parent776c25a65eec254b057ea7eddf39431c4e5d1916 (diff)
downloadfocaccia-miasm-7cb0c04aa97356200cf90001bfe04f8b32c84d34.tar.gz
focaccia-miasm-7cb0c04aa97356200cf90001bfe04f8b32c84d34.zip
Jitter: remove useless VmMngr argument
Diffstat (limited to 'miasm2/jitter/jitcore_python.py')
-rw-r--r--miasm2/jitter/jitcore_python.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/miasm2/jitter/jitcore_python.py b/miasm2/jitter/jitcore_python.py
index 87259f71..98ee25a8 100644
--- a/miasm2/jitter/jitcore_python.py
+++ b/miasm2/jitter/jitcore_python.py
@@ -38,11 +38,12 @@ class JitCore_Python(jitcore.JitCore):
         @irblocs: a gorup of irblocs
         """
 
-        def myfunc(cpu, vmmngr):
+        def myfunc(cpu):
             """Execute the function according to cpu and vmmngr states
             @cpu: JitCpu instance
-            @vm: VmMngr instance
             """
+            # Get virtual memory handler
+            vmmngr = cpu.vmmngr
 
             # Keep current location in irblocs
             cur_label = label
@@ -125,15 +126,14 @@ class JitCore_Python(jitcore.JitCore):
         # Associate myfunc with current label
         self.lbl2jitbloc[label.offset] = myfunc
 
-    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
-        @vm: VmMngr instance
         """
 
         # Get Python function corresponding to @label
         fc_ptr = self.lbl2jitbloc[label]
 
         # Execute the function
-        return fc_ptr(cpu, vmmngr)
+        return fc_ptr(cpu)