Updated elfio and fixed a problem in CLI usage

This commit is contained in:
Eyck Jentzsch 2017-10-12 20:23:12 +02:00
parent f2b9ca84b0
commit 097df706a9
2 changed files with 4 additions and 4 deletions

2
external/elfio vendored

@ -1 +1 @@
Subproject commit fbf8eafc2dab3ac441bc5221d967e23a2e6fdc46 Subproject commit 1fdbb6423528684e7b5d6dd9095b64f5617b1434

View File

@ -59,7 +59,7 @@ int sc_main(int argc, char *argv[]) {
("cycles,c", po::value<int64_t>()->default_value(-1), "number of cycles to run") ("cycles,c", po::value<int64_t>()->default_value(-1), "number of cycles to run")
("quantum", po::value<unsigned>(), "SystemC quantum time in ns") ("quantum", po::value<unsigned>(), "SystemC quantum time in ns")
("reset,r", po::value<std::string>(), "reset address") ("reset,r", po::value<std::string>(), "reset address")
("trace,t", po::value<uint8_t>()->default_value(0), "enable tracing, or combintation of 1=signals and 2=TX text, 4=TX compressed text, 6=TX in SQLite") ("trace,t", po::value<unsigned>()->default_value(0), "enable tracing, or combintation of 1=signals and 2=TX text, 4=TX compressed text, 6=TX in SQLite")
("rv64", "run RV64") ("rv64", "run RV64")
("config-file,c", po::value<std::string>()->default_value(""), "configuration file"); ("config-file,c", po::value<std::string>()->default_value(""), "configuration file");
// clang-format on // clang-format on
@ -99,8 +99,8 @@ int sc_main(int argc, char *argv[]) {
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// set up tracing & transaction recording // set up tracing & transaction recording
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
scc::tracer trace("simple_system", static_cast<scc::tracer::file_type>(vm["trace"].as<uint8_t>() >> 1), auto trace_val = vm["trace"].as<unsigned>();
vm["trace"].as<uint8_t>() != 0); scc::tracer trace("simple_system", static_cast<scc::tracer::file_type>(trace_val >> 1), trace_val != 0);
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// set up configuration // set up configuration
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////