Revert debug example, fix segfault in TlmRecorder.
This commit is contained in:
@@ -9,13 +9,7 @@
|
||||
"tracesetup": [
|
||||
{
|
||||
"clkMhz": 2000,
|
||||
"name": "gen0",
|
||||
"type": "generator",
|
||||
"numRequests": 20,
|
||||
"rwRatio": 1,
|
||||
"addressDistribution": "random",
|
||||
"dataLength": 64,
|
||||
"seed": 1
|
||||
"name": "ddr3_example.stl"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -92,8 +92,11 @@ void DRAMSysRecordable::end_of_simulation()
|
||||
|
||||
void DRAMSysRecordable::setupTlmRecorders(const std::string& traceName, const DRAMSysConfiguration::Configuration& configLib)
|
||||
{
|
||||
//tlmRecorders.reserve(config.memSpec->numberOfChannels);
|
||||
// Create TLM Recorders, one per channel.
|
||||
// Reserve is required because the recorders use double buffers that are accessed with pointers.
|
||||
// Without a reserve, the vector reallocates storage before inserting a second
|
||||
// element and the pointers are not valid anymore.
|
||||
tlmRecorders.reserve(config.memSpec->numberOfChannels);
|
||||
for (std::size_t i = 0; i < config.memSpec->numberOfChannels; i++)
|
||||
{
|
||||
std::string dbName = traceName + std::string("_ch") + std::to_string(i) + ".tdb";
|
||||
|
||||
Reference in New Issue
Block a user