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:
@@ -302,8 +302,6 @@ System::initState()
|
||||
DPRINTF(Loader, "Kernel loaded...\n");
|
||||
}
|
||||
}
|
||||
|
||||
activeCpus.clear();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user