diff options
Diffstat (limited to 'miasm2/arch/x86')
| -rw-r--r-- | miasm2/arch/x86/arch.py | 18 | ||||
| -rw-r--r-- | miasm2/arch/x86/sem.py | 9 |
2 files changed, 12 insertions, 15 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py index 2e858756..c5535153 100644 --- a/miasm2/arch/x86/arch.py +++ b/miasm2/arch/x86/arch.py @@ -2564,15 +2564,15 @@ class bs_cl1(bsi, m_arg): def sib_cond(cls, mode, v): - if admode_prefix((mode, v["opmode"], v["admode"])) == 16: - return None - if v['mod'] == 0b11: - return None - elif v['rm'] == 0b100: - return cls.ll - else: - return None - return v['rm'] == 0b100 + if admode_prefix((mode, v["opmode"], v["admode"])) == 16: + return None + if v['mod'] == 0b11: + return None + elif v['rm'] == 0b100: + return cls.ll + else: + return None + return v['rm'] == 0b100 class bs_cond_scale(bs_cond): diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 6e22e66d..bc98baf3 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -1845,18 +1845,15 @@ def ficom(ir, instr, a, b = None): def fcomi(ir, instr, a): - # Invalid emulation - InvalidEmulation + raise NotImplementedError("Invalid emulation") def fcomip(ir, instr, a): - # Invalid emulation - InvalidEmulation + raise NotImplementedError("Invalid emulation") def fucomi(ir, instr, a): - # Invalid emulation - InvalidEmulation + raise NotImplementedError("Invalid emulation") def fucomip(ir, instr, a, b): |