core/util: Added CommandLine interface (for bochs)

This commit is contained in:
Christian Dietrich
2013-03-11 15:27:45 +01:00
parent c1f32f5a98
commit ad3c185b61
7 changed files with 177 additions and 7 deletions

View File

@ -6,10 +6,12 @@
#ifdef BUILD_BOCHS
#include "../SALInst.hpp"
#include "util/CommandLine.hpp"
aspect FailBochsInit {
advice call("int bxmain()") : before ()
{
fail::CommandLine::Inst().collect_args(bx_startup_flags.argc, bx_startup_flags.argv);
fail::simulator.startup();
}
};