core/sal: Added features that indicate whether FAIL* is initialized

GEM5 throws a reset trap during initialization.
This happens before the startup function is called.
This leads to problems because the startup function fills the m_CPUs list.
m_CPUs is needed for the TrapListener.
Therefore, we only react on traps after initialization.
This is needed in the following commit (see gem5/src/arch/arm/faults.cc).

Change-Id: I9ec6fd453705feb54b4f8a87d024181323a2d7ef
This commit is contained in:
Richard Hellwig
2014-01-14 13:07:21 +01:00
parent 0907dfb0ae
commit 3c7861ff06
2 changed files with 11 additions and 2 deletions

View File

@ -50,6 +50,9 @@ void SimulatorController::startup()
std::cout << "[SimulatorController] Initializing..." << std::endl;
// TODO: Log-Level?
// Set Fail* as initialized
m_isInitialized = true;
// Activate previously added experiments to allow initialization:
initExperiments();
}