about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2017-05-25 23:40:27 +0200
committerGitHub <noreply@github.com>2017-05-25 23:40:27 +0200
commite0235fcd5ee2e29d0b6b13cc576ae6fe23ed0b30 (patch)
tree1d30bbcd32ab20c7df141d73469b88f01f6996b6
parente852d850d6d3a5e66fe6530c913274c61f9886c0 (diff)
parent355e42270711685c6118a7e1430913e1030fe0b0 (diff)
downloadmiasm-e0235fcd5ee2e29d0b6b13cc576ae6fe23ed0b30.tar.gz
miasm-e0235fcd5ee2e29d0b6b13cc576ae6fe23ed0b30.zip
Merge pull request #560 from commial/fix/dse-cache-bbl
Ensure there is no multi-line basic block in the cache
-rw-r--r--miasm2/analysis/dse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/miasm2/analysis/dse.py b/miasm2/analysis/dse.py
index 7fdc5035..56ed3292 100644
--- a/miasm2/analysis/dse.py
+++ b/miasm2/analysis/dse.py
@@ -185,6 +185,9 @@ class DSEEngine(object):
         self.jitter.jit.set_options(max_exec_per_call=1, jit_maxline=1)
         self.jitter.exec_cb = self.callback
 
+        # Clean jit cache to avoid multi-line basic blocks already jitted
+        self.jitter.jit.lbl2jitbloc.clear()
+
     def attach(self, emulator):
         """Attach the DSE to @emulator
         @emulator: jitload (or API equivalent) instance"""