about summary refs log tree commit diff stats
path: root/miasm
diff options
context:
space:
mode:
Diffstat (limited to 'miasm')
-rw-r--r--miasm/arch/arm/sem.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/miasm/arch/arm/sem.py b/miasm/arch/arm/sem.py
index 156d8374..a138ef91 100644
--- a/miasm/arch/arm/sem.py
+++ b/miasm/arch/arm/sem.py
@@ -391,6 +391,9 @@ def update_flag_arith_subwc_co(arg1, arg2, arg3):
     e += update_flag_subwc_of(arg1, arg2, arg3)
     return e
 
+# Utility function for flag computation when it depends on the mode
+def isThumb(lifter):
+    return isinstance(lifter, (Lifter_Armtl, Lifter_Armtb))
 
 
 def get_dst(a):