about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTim Blazytko <tim.blazytko@rub.de>2016-04-27 12:11:39 +0200
committerTim Blazytko <tim.blazytko@rub.de>2016-04-27 14:39:57 +0200
commit2afd98ef0298c04ba7374d41d944ca8305186df7 (patch)
treeb921e6393c944f4267458895c7086edcea9127ba
parent7afa4dd6f1d85caaf93ca56b7b2b9611d006c5e5 (diff)
downloadmiasm-2afd98ef0298c04ba7374d41d944ca8305186df7.tar.gz
miasm-2afd98ef0298c04ba7374d41d944ca8305186df7.zip
x86 arch: added opcode decoding for LFENCE
-rw-r--r--miasm2/arch/x86/arch.py1
-rw-r--r--test/arch/x86/arch.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py
index bf25a5df..96a14ee4 100644
--- a/miasm2/arch/x86/arch.py
+++ b/miasm2/arch/x86/arch.py
@@ -3620,6 +3620,7 @@ addop("lgs", [bs8(0x0f), bs8(0xb5)] + rmmod(rmreg, rm_arg_x=rm_mem, modrm=mod_me
 addop("lgdt", [bs8(0x0f), bs8(0x01)] + rmmod(d2, modrm=mod_mem))
 addop("lidt", [bs8(0x0f), bs8(0x01)] + rmmod(d3, modrm=mod_mem))
 
+addop("lfence", [bs8(0x0f), bs8(0xae), bs8(0xe8)])
 
 addop("leave", [bs8(0xc9), stk])
 
diff --git a/test/arch/x86/arch.py b/test/arch/x86/arch.py
index 29df049d..a2f03799 100644
--- a/test/arch/x86/arch.py
+++ b/test/arch/x86/arch.py
@@ -2135,6 +2135,8 @@ reg_tests = [
     (m32, "00000000    LIDT       DWORD PTR [EAX]",
      "0f0118"),
 
+    (m64, "00000000    LFENCE",
+     "0faee8"),
 
 
     (m32, "00000000    SUB        AL, 0x11",