diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2015-11-17 14:18:16 +0100 |
|---|---|---|
| committer | serpilliere <serpilliere@users.noreply.github.com> | 2015-11-17 14:18:16 +0100 |
| commit | a49419dd5e16283b1663181a47cdc85b7eff14dc (patch) | |
| tree | eed2791c9c96039c6603d0173646eb4265a85366 /miasm2/arch/x86/arch.py | |
| parent | c0826fefbbcd00c60f0e9f27dcac92c98fcb9d8e (diff) | |
| parent | bf4c21011c8396b939e147615d12998a11c91dcd (diff) | |
| download | miasm-a49419dd5e16283b1663181a47cdc85b7eff14dc.tar.gz miasm-a49419dd5e16283b1663181a47cdc85b7eff14dc.zip | |
Merge pull request #277 from commial/fix-x86-xchg
Fix x86 xchg
Diffstat (limited to '')
| -rw-r--r-- | miasm2/arch/x86/arch.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py index 2b9b3cb1..74ac0939 100644 --- a/miasm2/arch/x86/arch.py +++ b/miasm2/arch/x86/arch.py @@ -3252,6 +3252,10 @@ addop("cmpsq", [bs8(0xa7), bs_opmode64]) addop("cmpxchg", [bs8(0x0f), bs('1011000'), w8] + rmmod(rmreg, rm_arg_w8), [rm_arg_w8, rmreg]) +addop("cmpxchg8b", [bs8(0x0f), bs8(0xc7), bs_opmode16] + rmmod(d1, rm_arg_m64)) +addop("cmpxchg8b", [bs8(0x0f), bs8(0xc7), bs_opmode32] + rmmod(d1, rm_arg_m64)) +addop("cmpxchg16b", [bs8(0x0f), bs8(0xc7), bs_opmode64] + rmmod(d1, rm_arg_m64)) + # XXX TODO CMPXCHG8/16 addop("comiss", [bs8(0x0f), bs8(0x2f), no_xmm_pref] + |