about summary refs log tree commit diff stats
path: root/miasm2/core/cpu.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm2/core/cpu.py')
-rw-r--r--miasm2/core/cpu.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py
index 3fbe1e22..ce6cf288 100644
--- a/miasm2/core/cpu.py
+++ b/miasm2/core/cpu.py
@@ -8,8 +8,8 @@ from pyparsing import *
 from miasm2.expression.expression import *
 from miasm2.core import asmbloc
 from collections import defaultdict
-from bin_stream import bin_stream, bin_stream_str
-from utils import Disasm_Exception
+from miasm2.core.bin_stream import bin_stream, bin_stream_str
+from miasm2.core.utils import Disasm_Exception
 from miasm2.expression.simplifications import expr_simp
 
 log = logging.getLogger("cpuhelper")
@@ -1514,7 +1514,7 @@ class cls_mn(object):
         o = []
         for c, v in candidates:
             o += v
-        o.sort(key=lambda x: len(x))
+        o.sort(key=len)
         return o
 
     def value(self, mode):
@@ -1564,7 +1564,7 @@ class cls_mn(object):
                     if ((index, [xx[1].value for xx in to_decode]) in todo or
                         (index, [xx[1].value for xx in to_decode]) in done):
                         raise NotImplementedError('not fully functional')
-                        continue
+
                     for p, f in to_decode:
                         fnew = f.clone()
                         o.append((p, fnew))