16 -> 8 chained programs

constant address loads are always from L3
This commit is contained in:
tevador
2019-02-05 23:06:44 +01:00
parent 1ee94bef2a
commit b417fd08ea
7 changed files with 749 additions and 361 deletions

View File

@@ -172,7 +172,7 @@ void mine(RandomX::VirtualMachine* vm, std::atomic<int>& atomicNonce, AtomicHash
//vm->initializeScratchpad(scratchpad, spIndex);
vm->setScratchpad(scratchpad);
//dump((char*)((RandomX::CompiledVirtualMachine*)vm)->getProgram(), RandomX::CodeSize, "code-1337-jmp.txt");
for (int chain = 0; chain < 16; ++chain) {
for (int chain = 0; chain < 8; ++chain) {
vm->initializeProgram(hash);
vm->execute();
vm->getResult(nullptr, 0, hash);