From 37aab4a1558b223e63cee1e5dd40195ddb7851c0 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Fri, 15 May 2015 13:39:44 -0400 Subject: sim: Don't clear the active CPU vector in System::initState The system class currently clears the vector of active CPUs in initState(). CPUs are added to the list by registerThreadContext() which is called from BaseCPU::init(). This obviously breaks when the System object is initialized after the CPUs. This changeset removes the offending clear() call since the list will be empty after it has been instantiated anyway. --- src/sim/system.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/sim/system.cc b/src/sim/system.cc index 9bd487b03..2f2427769 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -302,8 +302,6 @@ System::initState() DPRINTF(Loader, "Kernel loaded...\n"); } } - - activeCpus.clear(); } void -- cgit v1.2.3