diff options
| author | Michael Matz <matz@suse.de> | 2016-07-11 17:25:18 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:08 +0100 |
| commit | 7e515466246b30f02867fc1f1902dea706ff31af (patch) | |
| tree | 79b9161ada89dff8534188f87b22d9ebbea1d5e3 | |
| parent | e5f4f8d0e7966a4ed50849ded52c5274a1ff55db (diff) | |
| download | tinycc-7e515466246b30f02867fc1f1902dea706ff31af.tar.gz tinycc-7e515466246b30f02867fc1f1902dea706ff31af.tar.bz2 | |
x86-asm: Implement clflush opcode
| -rw-r--r-- | tests/asmtest.S | 1 | ||||
| -rw-r--r-- | x86_64-asm.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/asmtest.S b/tests/asmtest.S index bf51c44..7f2e4ca 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 a40b697..c590c57 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 |
