Support Dataset size larger than 4 GiB

Support arbitrary value of RANDOMX_DATASET_EXTRA_SIZE
This commit is contained in:
tevador
2019-05-29 17:27:49 +02:00
parent 378d5def38
commit bc2aae0f61
6 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ namespace randomx {
}
template<class Allocator, bool softAes>
void InterpretedLightVm<Allocator, softAes>::datasetRead(uint32_t address, int_reg_t(&r)[8]) {
void InterpretedLightVm<Allocator, softAes>::datasetRead(uint64_t address, int_reg_t(&r)[8]) {
uint32_t itemNumber = address / CacheLineSize;
int_reg_t rl[8];