x86-asm: Implement clflush opcode

This commit is contained in:
Michael Matz 2016-07-11 17:25:18 +02:00
parent e5f4f8d0e7
commit 7e51546624
2 changed files with 2 additions and 0 deletions

View File

@ -613,6 +613,7 @@ int $0x10
lfence lfence
mfence mfence
sfence sfence
clflush 0x1000(%rax,%rcx)
#endif #endif
emms emms

View File

@ -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(lfence, 0x0fae, 5, OPC_MODRM)
DEF_ASM_OP0L(mfence, 0x0fae, 6, OPC_MODRM) DEF_ASM_OP0L(mfence, 0x0fae, 6, OPC_MODRM)
DEF_ASM_OP0L(sfence, 0x0fae, 7, OPC_MODRM) DEF_ASM_OP0L(sfence, 0x0fae, 7, OPC_MODRM)
DEF_ASM_OP1(clflush, 0x0fae, 7, OPC_MODRM, OPT_EA)
#undef ALT #undef ALT
#undef DEF_ASM_OP0 #undef DEF_ASM_OP0
#undef DEF_ASM_OP0L #undef DEF_ASM_OP0L