diff --git a/tests/tests_simulator/cache/TargetMemory.cpp b/tests/tests_simulator/cache/TargetMemory.cpp index 435eae26..9e299024 100644 --- a/tests/tests_simulator/cache/TargetMemory.cpp +++ b/tests/tests_simulator/cache/TargetMemory.cpp @@ -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); }