diff options
Diffstat (limited to 'miasm2/arch/x86/sem.py')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index cdc98fba..565e63c5 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -2850,7 +2850,7 @@ def cmovns(ir, instr, arg1, arg2): def icebp(ir, instr): e = [] e.append(m2_expr.ExprAff(exception_flags, - m2_expr.ExprInt32(EXCEPT_PRIV_INSN))) + m2_expr.ExprInt32(EXCEPT_SOFT_BP))) return e, [] # XXX @@ -2874,6 +2874,13 @@ def l_sysenter(ir, instr): m2_expr.ExprInt32(EXCEPT_PRIV_INSN))) return e, [] + +def l_syscall(ir, instr): + e = [] + e.append(m2_expr.ExprAff(exception_flags, + m2_expr.ExprInt32(EXCEPT_PRIV_INSN))) + return e, [] + # XXX @@ -4260,6 +4267,7 @@ mnemo_func = {'mov': mov, 'out': l_out, "sysenter": l_sysenter, + "syscall": l_syscall, "cmpxchg": cmpxchg, "cmpxchg8b": cmpxchg8b, "lds": lds, |