diff options
| author | Ajax <commial@gmail.com> | 2019-03-10 17:58:37 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2019-04-12 16:40:05 +0200 |
| commit | bc1bf01ba4c7c0fe3cf325f4ac12577eaf947852 (patch) | |
| tree | 88b964e6277e7e7179347424b132efac261c8703 | |
| parent | 74254d1b9174ed9265908d79914f50284c8bd96f (diff) | |
| download | miasm-bc1bf01ba4c7c0fe3cf325f4ac12577eaf947852.tar.gz miasm-bc1bf01ba4c7c0fe3cf325f4ac12577eaf947852.zip | |
x86: add FXSAVE and FXRSTOR as NOP instr
| -rw-r--r-- | miasm/arch/x86/sem.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/miasm/arch/x86/sem.py b/miasm/arch/x86/sem.py index 1af9359e..3d38a9be 100644 --- a/miasm/arch/x86/sem.py +++ b/miasm/arch/x86/sem.py @@ -5078,6 +5078,14 @@ def movmskpd(ir, instr, dst, src): out.append(src[(64 * i) + 63:(64 * i) + 64]) return [m2_expr.ExprAssign(dst, m2_expr.ExprCompose(*out).zeroExtend(dst.size))], [] +def fxsave(_ir, _instr, _src): + # Implemented as a NOP for now + return [], [] + +def fxrstor(_ir, _instr, _dst): + # Implemented as a NOP for now + return [], [] + mnemo_func = {'mov': mov, 'xchg': xchg, @@ -5679,6 +5687,8 @@ mnemo_func = {'mov': mov, "clrssbsy": clrssbsy, "endbr64": endbr64, "endbr32": endbr32, + "fxsave": fxsave, + "fxrstor": fxrstor, } |