diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-09-02 10:59:14 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-09-02 10:59:14 +0200 |
| commit | 87f67b0209a8e0969fc7269d96600795e67517fe (patch) | |
| tree | b3ffdd32b8738736e17f8078e0e275f444b48f1e /miasm2/arch/x86/sem.py | |
| parent | 9e27d5599417f22d46808116765d1514f67484c9 (diff) | |
| download | miasm-87f67b0209a8e0969fc7269d96600795e67517fe.tar.gz miasm-87f67b0209a8e0969fc7269d96600795e67517fe.zip | |
x86/sem: add syscall
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 7cf61201..565e63c5 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -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, |