diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-02-18 17:07:50 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-02-18 17:07:50 +0200 |
commit | 35616a71da0556189b120adfe4d793d7337d3587 (patch) | |
tree | 830b371c88726386cd5eed1973c798ef6a580862 /src/crypto/CryptonightR_JIT.c | |
parent | Merge pull request #5157 (diff) | |
parent | tests: add a CNv4 JIT test (diff) | |
download | monero-35616a71da0556189b120adfe4d793d7337d3587.tar.xz |
Merge pull request #5158
993a1994 tests: add a CNv4 JIT test (moneromooo-monero)
736f2579 crypto: plug CNv4 JIT into cn_slow_hash (moneromooo-monero)
2e9b988a crypto: clear cache after generating random program (moneromooo-monero)
683c3d13 performance_tests: add tests for new Cryptonight variants (moneromooo-monero)
Diffstat (limited to 'src/crypto/CryptonightR_JIT.c')
-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; } |