diff options
| author | Niko Schmidt <itsacoderepo@users.noreply.github.com> | 2016-04-28 14:10:39 +0200 |
|---|---|---|
| committer | niko <niko@radicallyopensecurity.com> | 2016-05-07 12:44:05 +0200 |
| commit | dcf3eed759061bc3803e5c2a11b30718ea94a709 (patch) | |
| tree | e207048033217c5f7fe6d0eb49b415c08083a913 /miasm2/arch/x86/sem.py | |
| parent | c1220fe33431b4688adc2a83d49b965c62faa174 (diff) | |
| download | miasm-dcf3eed759061bc3803e5c2a11b30718ea94a709.tar.gz miasm-dcf3eed759061bc3803e5c2a11b30718ea94a709.zip | |
x86 sem: prefetchw and lfence added
x86 sem: prefetchw and lfence added
Diffstat (limited to 'miasm2/arch/x86/sem.py')
| -rw-r--r-- | miasm2/arch/x86/sem.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py index 14c7b4b2..28e42353 100644 --- a/miasm2/arch/x86/sem.py +++ b/miasm2/arch/x86/sem.py @@ -2556,6 +2556,16 @@ def fcmovnu(ir, instr, arg1, arg2): def nop(ir, instr, a=None): return [], [] +def prefetchw(ir, instr, a=None): + # see 4-201 on this documentation + # https://www-ssl.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-instruction-set-reference-manual-325383.pdf + return [], [] + +def lfence(ir, instr, a=None): + # see 3-485 on this documentation + # https://www-ssl.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-instruction-set-reference-manual-325383.pdf + return [], [] + def ud2(ir, instr, a=None): e = [m2_expr.ExprAff(exception_flags, m2_expr.ExprInt(EXCEPT_ILLEGAL_INSN, exception_flags.size))] return e, [] @@ -4126,6 +4136,8 @@ mnemo_func = {'mov': mov, 'fcomip': fcomip, 'nop': nop, 'ud2': ud2, + 'prefetchw':prefetchw, + 'lfence':lfence, 'fnop': nop, # XXX 'hlt': hlt, 'rdtsc': rdtsc, |