Fix dump of mcconfig and memspec in GeneralInfo table
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user