diff --git a/src/crypto/randomx/jit_compiler_a64.cpp b/src/crypto/randomx/jit_compiler_a64.cpp index 05dac9f7..86050308 100644 --- a/src/crypto/randomx/jit_compiler_a64.cpp +++ b/src/crypto/randomx/jit_compiler_a64.cpp @@ -94,7 +94,7 @@ static size_t CalcDatasetItemSize() // Main loop prologue ((uint8_t*)randomx_calc_dataset_item_aarch64_mix - ((uint8_t*)randomx_calc_dataset_item_aarch64_prefetch)) + 4 + // Inner main loop (instructions) - ((RandomX_ConfigurationBase::SuperscalarLatency * 3) + 2) * 16 + + ((RandomX_ConfigurationBase::SuperscalarMaxLatency * 3) + 2) * 16 + // Main loop epilogue ((uint8_t*)randomx_calc_dataset_item_aarch64_store_result - (uint8_t*)randomx_calc_dataset_item_aarch64_mix) + 4 ) + diff --git a/src/crypto/randomx/randomx.h b/src/crypto/randomx/randomx.h index 30e47368..c2d24444 100644 --- a/src/crypto/randomx/randomx.h +++ b/src/crypto/randomx/randomx.h @@ -69,6 +69,7 @@ struct RandomX_ConfigurationBase { ArgonMemory = 262144, CacheAccesses = 8, + SuperscalarMaxLatency = 170, DatasetBaseSize = 2147483648, DatasetExtraSize = 33554368, JumpBits = 8,