Fix dump of mcconfig and memspec in GeneralInfo table

This commit is contained in:
2023-03-17 14:55:16 +01:00
parent 3d4f73361f
commit 03152c0e61

View File

@@ -110,9 +110,14 @@ void DRAMSysRecordable::setupTlmRecorders(const std::string& traceName,
std::string dbName = std::string(name()) + "_" + traceName + "_ch" + std::to_string(i) + ".tdb";
std::string recorderName = "tlmRecorder" + std::to_string(i);
nlohmann::json mcconfig;
nlohmann::json memspec;
mcconfig[Config::McConfig::KEY] = configLib.mcconfig;
memspec[Config::MemSpec::KEY] = configLib.memspec;
tlmRecorders.emplace_back(recorderName, config, dbName);
tlmRecorders.back().recordMcConfig(nlohmann::json(configLib.mcconfig).dump());
tlmRecorders.back().recordMemspec(nlohmann::json(configLib.memspec).dump());
tlmRecorders.back().recordMcConfig(mcconfig.dump());
tlmRecorders.back().recordMemspec(memspec.dump());
tlmRecorders.back().recordTraceNames(config.simulationName);
}
}