aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-16 20:52:53 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-04 11:56:46 +0000
commit78ab59ea449c8af188ecbd0d6961f35e3dd7ecb6 (patch)
tree07ca5345ef5d68079d2c3197851ec722c829094f /src
parentperformance_tests: add tests for new Cryptonight variants (diff)
downloadmonero-78ab59ea449c8af188ecbd0d6961f35e3dd7ecb6.tar.xz
crypto: clear cache after generating random program
Diffstat (limited to 'src')
-rw-r--r--src/crypto/CryptonightR_JIT.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crypto/CryptonightR_JIT.c b/src/crypto/CryptonightR_JIT.c
index 0b123b4ee..9add65296 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;
}