mirror of
https://github.com/xmrig/xmrig.git
synced 2026-04-18 21:32:42 -04:00
ARM fix
This commit is contained in:
@@ -82,7 +82,7 @@ static size_t CalcDatasetItemSize()
|
|||||||
// Prologue
|
// Prologue
|
||||||
((uint8_t*)randomx_calc_dataset_item_aarch64_prefetch - (uint8_t*)randomx_calc_dataset_item_aarch64) +
|
((uint8_t*)randomx_calc_dataset_item_aarch64_prefetch - (uint8_t*)randomx_calc_dataset_item_aarch64) +
|
||||||
// Main loop
|
// Main loop
|
||||||
RandomX_ConfigurationBase::CacheAccesses * (
|
RandomX_CurrentConfig.CacheAccesses * (
|
||||||
// Main loop prologue
|
// Main loop prologue
|
||||||
((uint8_t*)randomx_calc_dataset_item_aarch64_mix - ((uint8_t*)randomx_calc_dataset_item_aarch64_prefetch)) + 4 +
|
((uint8_t*)randomx_calc_dataset_item_aarch64_mix - ((uint8_t*)randomx_calc_dataset_item_aarch64_prefetch)) + 4 +
|
||||||
// Inner main loop (instructions)
|
// Inner main loop (instructions)
|
||||||
@@ -242,7 +242,7 @@ void JitCompilerA64::generateSuperscalarHash(SuperscalarProgram(&programs)[N], s
|
|||||||
num32bitLiterals = 64;
|
num32bitLiterals = 64;
|
||||||
constexpr uint32_t tmp_reg = 12;
|
constexpr uint32_t tmp_reg = 12;
|
||||||
|
|
||||||
for (size_t i = 0; i < RandomX_ConfigurationBase::CacheAccesses; ++i)
|
for (size_t i = 0; i < RandomX_CurrentConfig.CacheAccesses; ++i)
|
||||||
{
|
{
|
||||||
// and x11, x10, CacheSize / CacheLineSize - 1
|
// and x11, x10, CacheSize / CacheLineSize - 1
|
||||||
emit32(0x92400000 | 11 | (10 << 5) | ((RandomX_CurrentConfig.Log2_CacheSize - 1) << 10), code, codePos);
|
emit32(0x92400000 | 11 | (10 << 5) | ((RandomX_CurrentConfig.Log2_CacheSize - 1) << 10), code, codePos);
|
||||||
|
|||||||
Reference in New Issue
Block a user