about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTim Blazytko <tim.blazytko@rub.de>2016-04-27 11:03:44 +0200
committerTim Blazytko <tim.blazytko@rub.de>2016-04-27 14:38:46 +0200
commit7afa4dd6f1d85caaf93ca56b7b2b9611d006c5e5 (patch)
treeac11192e8d3019006eea1e352cde1b37de69cdfb
parent75af8164a0b7286baf74b3af56bf4dfb17f01b2e (diff)
downloadmiasm-7afa4dd6f1d85caaf93ca56b7b2b9611d006c5e5.tar.gz
miasm-7afa4dd6f1d85caaf93ca56b7b2b9611d006c5e5.zip
x86 arch: added opcode decoding for PREFETCHW
-rw-r--r--miasm2/arch/x86/arch.py1
-rw-r--r--test/arch/x86/arch.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index 0637d3e9..bf25a5df 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -3759,6 +3759,7 @@ addop("prefetch0", [bs8(0x0f), bs8(0x18)] + rmmod(d1, rm_arg_m08))
 addop("prefetch1", [bs8(0x0f), bs8(0x18)] + rmmod(d2, rm_arg_m08))
 addop("prefetch2", [bs8(0x0f), bs8(0x18)] + rmmod(d3, rm_arg_m08))
 addop("prefetchnta", [bs8(0x0f), bs8(0x18)] + rmmod(d0, rm_arg_m08))
+addop("prefetchw", [bs8(0x0f), bs8(0x0d)] + rmmod(d1, rm_arg_m08))
 
 addop("pushw", [bs8(0xff), stk, bs_opmode16] + rmmod(d6))
 addop("pushw", [bs("01010"), stk, reg, bs_opmode16])
diff --git a/test/arch/x86/arch.py b/test/arch/x86/arch.py
index d48a707c..29df049d 100644
--- a/test/arch/x86/arch.py
+++ b/test/arch/x86/arch.py
@@ -1744,7 +1744,8 @@ reg_tests = [
      "0f1818"),
     (m32, "00000000    PREFETCHNTA BYTE PTR [EAX]",
      "0f1800"),
-
+    (m64, "00000000    PREFETCHW  BYTE PTR [RDI]",
+     "0f0d0f"),
 
     (m16, "00000000    PUSHW      AX",
      "50"),