core/sal: move command-line parameter passing to SC::startup()

This commit is contained in:
Horst Schirmeier
2013-03-14 22:29:43 +01:00
parent 422db3e21d
commit eb17e9ef82
9 changed files with 15 additions and 24 deletions

View File

@ -2,6 +2,7 @@
#include "SALInst.hpp"
#include "Event.hpp"
#include "Listener.hpp"
#include "util/CommandLine.hpp"
namespace fail {
@ -35,12 +36,16 @@ BaseListener* SimulatorController::resume(void)
return m_LstList.getLastFired();
}
void SimulatorController::startup()
void SimulatorController::startup(int argc, char **argv)
{
// Some greetings to the user:
std::cout << "[SimulatorController] Initializing..." << std::endl;
// TODO: Log-Level?
if (argv) {
CommandLine::Inst().collect_args(bx_startup_flags.argc, bx_startup_flags.argv);
}
// Activate previously added experiments to allow initialization:
initExperiments();
}