diff options
| author | Camille Mougey <commial@gmail.com> | 2016-09-02 13:02:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-02 13:02:16 +0200 |
| commit | e2f41c18846d60f5223a873039a5281724f290c1 (patch) | |
| tree | b3ffdd32b8738736e17f8078e0e275f444b48f1e | |
| parent | 9e27d5599417f22d46808116765d1514f67484c9 (diff) | |
| parent | 87f67b0209a8e0969fc7269d96600795e67517fe (diff) | |
| download | miasm-e2f41c18846d60f5223a873039a5281724f290c1.tar.gz miasm-e2f41c18846d60f5223a873039a5281724f290c1.zip | |
Merge pull request #416 from serpilliere/fix_x86_syscall
x86/sem: add syscall
| -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, |