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.
This commit is contained in:
Andreas Sandberg 2015-05-15 13:39:44 -04:00
parent a45c9508ea
commit 37aab4a155

View file

@ -302,8 +302,6 @@ System::initState()
DPRINTF(Loader, "Kernel loaded...\n"); DPRINTF(Loader, "Kernel loaded...\n");
} }
} }
activeCpus.clear();
} }
void void