sim: Don't clear the active CPU vector in System::initState
authorAndreas Sandberg <Andreas.Sandberg@ARM.com>
Fri, 15 May 2015 17:39:44 +0000 (13:39 -0400)
committerAndreas Sandberg <Andreas.Sandberg@ARM.com>
Fri, 15 May 2015 17:39:44 +0000 (13:39 -0400)
commit37aab4a1558b223e63cee1e5dd40195ddb7851c0
tree6d7a6b6b5e32497ffac7fd468afe8c19a77236ac
parenta45c9508ea3382f54d53f74bea48a61572343a4f
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