fdr: align major structures to cachelines

This commit is contained in:
Justin Viiret
2017-05-23 14:28:12 +10:00
committed by Matthew Barr
parent c36c071564
commit 9bdd370163
3 changed files with 43 additions and 29 deletions

View File

@@ -367,7 +367,7 @@ setupFullConfs(const vector<hwlmLiteral> &lits,
u32 totalConfSwitchSize = nBuckets * sizeof(u32);
u32 totalSize = ROUNDUP_16(totalConfSwitchSize + totalConfirmSize);
auto buf = make_zeroed_bytecode_ptr<u8>(totalSize, 16);
auto buf = make_zeroed_bytecode_ptr<u8>(totalSize, 64);
assert(buf); // otherwise would have thrown std::bad_alloc
u32 *confBase = (u32 *)buf.get();