diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-02-16 20:52:53 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-02-18 10:37:02 +0000 |
commit | 2e9b988adfdab620dcbe0bc13a572de65660976b (patch) | |
tree | 3d41354befaed29d7f6cb2b7c67afbcae7f3149b /src/crypto/CryptonightR_JIT.c | |
parent | performance_tests: add tests for new Cryptonight variants (diff) | |
download | monero-2e9b988adfdab620dcbe0bc13a572de65660976b.tar.xz |
crypto: clear cache after generating random program
Diffstat (limited to '')
-rw-r--r-- | src/crypto/CryptonightR_JIT.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crypto/CryptonightR_JIT.c b/src/crypto/CryptonightR_JIT.c index 007258142..1667bf816 100644 --- a/src/crypto/CryptonightR_JIT.c +++ b/src/crypto/CryptonightR_JIT.c @@ -95,5 +95,8 @@ int v4_generate_JIT_code(const struct V4_Instruction* code, v4_random_math_JIT_f } APPEND_CODE(epilogue, sizeof(epilogue)); + + __builtin___clear_cache((char*)buf, (char*)JIT_code); + return 0; } |