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:
parent
a45c9508ea
commit
37aab4a155
1 changed files with 0 additions and 2 deletions
|
@ -302,8 +302,6 @@ System::initState()
|
||||||
DPRINTF(Loader, "Kernel loaded...\n");
|
DPRINTF(Loader, "Kernel loaded...\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
activeCpus.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue