Commit 14241b45 authored by ROKICKI Simon's avatar ROKICKI Simon

Adding a memset to set everything at zero

parent f0470f5e
......@@ -16,6 +16,9 @@ BasicSimulator::BasicSimulator(const char* binaryFile, std::vector<std::string>
const char* outFile, const char* tFile)
char* coreAsChar = (char*)&core;
memset(coreAsChar, 0, sizeof(Core));
im = new ac_int<32, false>[DRAM_SIZE >> 2];
dm = new ac_int<32, false>[DRAM_SIZE >> 2];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment