Merge branch 'dev' into sync-base

This commit is contained in:
XMRig 2022-07-10 06:53:04 +07:00
commit 07d53fb77e
No known key found for this signature in database
GPG key ID: 446A53638BE94409
18 changed files with 114 additions and 46 deletions

View file

@ -240,10 +240,17 @@ namespace randomx {
return x;
}
void cleanup() {
for (unsigned i = 0; i < RegistersCount; ++i) {
registerUsage[i] = -1;
}
nreg = nullptr;
}
private:
static const int_reg_t zero;
int registerUsage[RegistersCount];
NativeRegisterFile* nreg;
int registerUsage[RegistersCount] = {};
NativeRegisterFile* nreg = nullptr;
static void* getScratchpadAddress(InstructionByteCode& ibc, uint8_t* scratchpad) {
uint32_t addr = (*ibc.isrc + ibc.imm) & ibc.memMask;

View file

@ -104,6 +104,8 @@ namespace randomx {
for (unsigned i = 0; i < RegisterCountFlt; ++i)
rx_store_vec_f128(&reg.e[i].lo, nreg.e[i]);
cleanup();
}
template<int softAes>