about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--miasm2/jitter/jitcore.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/miasm2/jitter/jitcore.py b/miasm2/jitter/jitcore.py
index 46451520..02a0b7c1 100644
--- a/miasm2/jitter/jitcore.py
+++ b/miasm2/jitter/jitcore.py
@@ -61,6 +61,12 @@ class JitCore(object):
 
         self.options.update(kwargs)
 
+    def clear_jitted_blocks(self):
+        "Reset all jitted blocks"
+        self.lbl2jitbloc.clear()
+        self.lbl2bloc.clear()
+        self.blocs_mem_interval = interval()
+
     def add_disassembly_splits(self, *args):
         """The disassembly engine will stop on address in args if they
         are not at the block beginning"""