SChernykh
89031917e9
DragonFlyBSD fix
2 years ago
SChernykh
118bb7b1b3
Fixed cache invalidate order on Apple silicon
2 years ago
SChernykh
b39068f7c3
Merge remote-tracking branch 'upstream/master' into p2pool
2 years ago
hyc
261d58c77f
Fix missing failure check in allocMemoryPages() ( #250 )
2 years ago
SChernykh
256d27c5c5
Merge remote-tracking branch 'upstream/master' into p2pool
2 years ago
SChernykh
00472c54ef
Fixed compiler warning
...
```
virtual_memory.c:210:14: warning: type defaults to 'int' in declaration of 'pageMinimum' [-Wimplicit-int]
```
2 years ago
SChernykh
7167cf1ce6
Fixed wrong cast
2 years ago
SChernykh
344e2065c2
Returned flushInstructionCache()
2 years ago
SChernykh
166e0d80f5
Fixed cache->jit memory leak
...
1. `cache->jit = new randomx::JitCompiler();` - succeeds
2. `cache->memory = (uint8_t*)randomx::LargePageAllocator::allocMemory(randomx::CacheSize);` - fails
3. `if (cache && cache->memory == nullptr) randomx_release_cache(cache);` is executed
4. randomx_release_cache checks `if (cache->memory != nullptr)` and does nothing
5. cache->jit stays allocated
2 years ago
SChernykh
973a874ad4
Merge remote-tracking branch 'upstream/master' into p2pool
2 years ago
SChernykh
c31273b195
Fixed executable stack
2 years ago
hyc
85c527a623
Fix missing defs on older platforms ( #243 )
2 years ago
Howard Chu
d8fb7363c1
Fix previous commit...
...
true/false leftover from C++
2 years ago
Howard Chu
6f756473c0
Don't use exceptions in low-level mem allocator
2 years ago
tevador
905ee34f8b
Do not use reserved identifiers in intrin_portable.h
...
Identifiers starting with an underscore followed by an uppercase
letter are reserved for the compiler.
3 years ago
hyc
9efc398c19
Merge pull request #227 from selsta/randomx-benchmark
...
RandomX benchmark 1.1.11
3 years ago
selsta
85a4032f34
RandomX benchmark 1.1.11
3 years ago
Jethro Grassie
4d8ef87936
pageProtect when missing pthread_jit_write_protect_np
3 years ago
Jethro Grassie
31b9b0f8fc
Add runtime checks
3 years ago
Jethro Grassie
c7973839fa
Fix apple-non-arm jit guard
3 years ago
SChernykh
bbc9ccc90b
Fixed a crash in MSVC Debug and RelWithDebInfo builds
...
MSVC debug/relwithdebinfo builds use jmp trampolines for ASM functions, so these must be traversed to get the actual address of the code for each function.
3 years ago
tevador
d589aa29d3
Merge pull request #222 from hyc/relocs
...
Fix absolute address references
3 years ago
tevador
b27283a708
Merge pull request #217 from hyc/issue216
...
Fix #216 - MacOS JIT privs are not ARM-specific
3 years ago
hyc
59c981cc5d
Merge pull request #192 from xiphon/fix-mingw-5.3-cross-compilation
...
__cpuidex: explicit MSVC check, fix MinGW GCC 5.3 cross-compilation
3 years ago
Howard Chu
ae2c241a96
Fix #216 - MacOS JIT privs are not ARM-specific
3 years ago
hyc
088c36fea0
Fix absolute address references
...
Use local symbols instead of global symbols, to prevent problems
with dynamic linker
3 years ago
tevador
8006ac7ec0
Fix native code generator using the wrong hash function
3 years ago
SChernykh
1adc7d8efd
Fixed crash in RelWithDebInfo config
3 years ago
SChernykh
69f2baec41
Fixed code cache flushing on macOS
3 years ago
SChernykh
fe236c782e
Update intrin_portable.h
3 years ago
SChernykh
0b4d553b20
Fixed memory leak when cache fails to allocate
3 years ago
SChernykh
f1fb56896e
Update dataset.hpp
3 years ago
SChernykh
293bd02a4c
Fixed warnings
3 years ago
SChernykh
d1fcc98b03
Fixed warnings
3 years ago
SChernykh
0ff83a2a81
Merge remote-tracking branch 'upstream/master'
3 years ago
SChernykh
3c8c7ee097
Optimized dataset read ( #211 )
...
* Optimized dataset read
There was a false dependency on readReg2 and readReg3 (caused by `xor rbp, rax` instruction) when reading dataset item (see design.md - 4.6.2 Loop execution, steps 5 and 7). This change uses `ma` register to read dataset item before the whole `rbp` (`ma` and `mx`) is changed, so superscalar and out-of-order CPU can start executing it earlier.
Results: https://i.imgur.com/Bpeq9mx.png
~1% speedup on modern Intel/AMD CPUs.
* ARMv8: optimized dataset read
Break dependency from readReg2 and readReg3.
* Fixed light mode hashing
3 years ago
SChernykh
a44c5a47ec
Merge remote-tracking branch 'upstream/master'
3 years ago
tevador
c12097400b
Merge pull request #212 from hyc/m1prot
...
Faster W^X policy for apple silicon macs
3 years ago
tevador
0db4c57823
Merge pull request #198 from tevador/pr-applem1
...
Apple silicon: force W^X, enable hardware AES
3 years ago
Howard Chu
d9b7e8c25d
Faster W^X policy for apple silicon macs
3 years ago
SChernykh
2ba7df2844
Fix illegal instruction crash on some ARM systems
...
See https://github.com/xmrig/xmrig/issues/1916
3 years ago
SChernykh
862556f239
Fix illegal instruction crash on some ARM systems
...
See https://github.com/xmrig/xmrig/issues/1916
3 years ago
SChernykh
f50635efd6
Merge remote-tracking branch 'upstream/master'
3 years ago
tevador
a44d07c89f
Merge pull request #201 from cryptonote-social/removecode
...
remove unnecessary first-load initialization code
3 years ago
cryptonote-social
529b933fcf
remove unnecessary first-load initialization code
3 years ago
tevador
a38ce601fd
Apple silicon: force W^X, enable hardware AES
4 years ago
tevador
5bfd021e8f
Merge pull request #183 from selsta/map_jit
...
virtual_memory: add MAP_JIT on macOS
4 years ago
SChernykh
1ce204fb80
Merge remote-tracking branch 'upstream/master'
4 years ago
xiphon
66c22813f6
__cpuidex: explicit MSVC check, fix MinGW GCC 5.3 cross-compilation
4 years ago
tevador
5ce5f4906c
add --noBatch benchmark option
4 years ago