diff options
| author | woni <81616747+W0ni@users.noreply.github.com> | 2023-09-13 12:39:41 +0200 |
|---|---|---|
| committer | woni <81616747+W0ni@users.noreply.github.com> | 2023-09-13 12:39:41 +0200 |
| commit | 1885f3caa96cd953e6f90a33b5d3863808cbcf40 (patch) | |
| tree | 42a814df5888bf3248021b27f552cebf8ac754ae /miasm | |
| parent | 71e4e09da6816a72905adeea3c0864714353c406 (diff) | |
| download | focaccia-miasm-1885f3caa96cd953e6f90a33b5d3863808cbcf40.tar.gz focaccia-miasm-1885f3caa96cd953e6f90a33b5d3863808cbcf40.zip | |
Add tests for MOVS and isThumb utility function
Diffstat (limited to 'miasm')
| -rw-r--r-- | miasm/arch/arm/sem.py | 3 |
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): |