about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/sem.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2016-09-02 10:59:14 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2016-09-02 10:59:14 +0200
commit87f67b0209a8e0969fc7269d96600795e67517fe (patch)
treeb3ffdd32b8738736e17f8078e0e275f444b48f1e /miasm2/arch/x86/sem.py
parent9e27d5599417f22d46808116765d1514f67484c9 (diff)
downloadmiasm-87f67b0209a8e0969fc7269d96600795e67517fe.tar.gz
miasm-87f67b0209a8e0969fc7269d96600795e67517fe.zip
x86/sem: add syscall
Diffstat (limited to '')
-rw-r--r--miasm2/arch/x86/sem.py8
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,