Fix crash in Cache Test

This commit is contained in:
2025-04-23 14:18:49 +02:00
parent ee85f0df8f
commit a4d8705c8d

View File

@@ -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);
}