Merge branch 'fix/TargetMemoryTest' into 'develop'
Fix crash in Cache Test See merge request ems/astdm/modeling.dram/dram.sys.5!121
This commit is contained in:
2
tests/tests_simulator/cache/TargetMemory.cpp
vendored
2
tests/tests_simulator/cache/TargetMemory.cpp
vendored
@@ -55,7 +55,7 @@ TargetMemory::TargetMemory(const sc_core::sc_module_name& name,
|
||||
{
|
||||
tSocket.register_nb_transport_fw(this, &TargetMemory::nb_transport_fw);
|
||||
|
||||
memory.reserve(SIZE);
|
||||
memory.resize(SIZE);
|
||||
std::fill(memory.begin(), memory.end(), 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user