diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-12-24 21:38:50 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-12-24 21:38:50 +0200 |
commit | a4393f108396bc315e8317eed964324739cf6cdd (patch) | |
tree | 822edf3ed883d2a838492f9b2ef2e86f9b475767 | |
parent | 63c6f35a263a135ebd44334ab4c9b0e22424bb5b (diff) |
sim stateful works now
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
-rwxr-xr-x | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index de6cef45..15bd99dd 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -289,12 +289,14 @@ int main(int argc , char * argv[]){ case OPT_TYPE_SF: { SimStateful sf; + CGlobalInfo::m_options.m_run_mode = CParserOption::RUN_MODE_BATCH; return sf.run(); } case OPT_TYPE_SL: { SimStateless &st = SimStateless::get_instance(); + CGlobalInfo::m_options.m_run_mode = CParserOption::RUN_MODE_INTERACTIVE; if (params.count("dp_core_count") == 0) { params["dp_core_count"] = 1; |