From 7e515466246b30f02867fc1f1902dea706ff31af Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 11 Jul 2016 17:25:18 +0200 Subject: [PATCH] x86-asm: Implement clflush opcode --- tests/asmtest.S | 1 + x86_64-asm.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/asmtest.S b/tests/asmtest.S index bf51c449..7f2e4ca6 100644 --- a/tests/asmtest.S +++ b/tests/asmtest.S @@ -613,6 +613,7 @@ int $0x10 lfence mfence sfence + clflush 0x1000(%rax,%rcx) #endif emms diff --git a/x86_64-asm.h b/x86_64-asm.h index a40b6979..c590c57f 100644 --- a/x86_64-asm.h +++ b/x86_64-asm.h @@ -488,6 +488,7 @@ ALT(DEF_ASM_OP2(movhps, 0x0f17, 0, OPC_MODRM, OPT_SSE, OPT_EA | OPT_REG32 )) DEF_ASM_OP0L(lfence, 0x0fae, 5, OPC_MODRM) DEF_ASM_OP0L(mfence, 0x0fae, 6, OPC_MODRM) DEF_ASM_OP0L(sfence, 0x0fae, 7, OPC_MODRM) + DEF_ASM_OP1(clflush, 0x0fae, 7, OPC_MODRM, OPT_EA) #undef ALT #undef DEF_ASM_OP0 #undef DEF_ASM_OP0L