diff options
| author | Niko Schmidt <itsacoderepo@users.noreply.github.com> | 2016-04-28 14:00:51 +0200 |
|---|---|---|
| committer | niko <niko@radicallyopensecurity.com> | 2016-05-07 12:43:12 +0200 |
| commit | c1220fe33431b4688adc2a83d49b965c62faa174 (patch) | |
| tree | 9ce8f2985cb027ee057c08cb2e989d1522440849 | |
| parent | 14f67c6dfabb7f3d77920278191ae60ae2a6f08b (diff) | |
| download | miasm-c1220fe33431b4688adc2a83d49b965c62faa174.tar.gz miasm-c1220fe33431b4688adc2a83d49b965c62faa174.zip | |
x86 sem: missing ud2 instruction in sem.py.
x86 sem: missing ud2 instruction in sem.py.
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index eb067c55..14c7b4b2 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -2555,7 +2555,10 @@ def fcmovnu(ir, instr, arg1, arg2): def nop(ir, instr, a=None): return [], [] - + +def ud2(ir, instr, a=None): + e = [m2_expr.ExprAff(exception_flags, m2_expr.ExprInt(EXCEPT_ILLEGAL_INSN, exception_flags.size))] + return e, [] def hlt(ir, instr): e = [] @@ -4122,6 +4125,7 @@ mnemo_func = {'mov': mov, 'fcomi': fcomi, 'fcomip': fcomip, 'nop': nop, + 'ud2': ud2, 'fnop': nop, # XXX 'hlt': hlt, 'rdtsc': rdtsc, |