about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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",