From 097df706a931a25977643e50e982aa91a6716c10 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Thu, 12 Oct 2017 20:23:12 +0200 Subject: [PATCH] Updated elfio and fixed a problem in CLI usage --- external/elfio | 2 +- riscv.sc/src/sc_main.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/external/elfio b/external/elfio index fbf8eaf..1fdbb64 160000 --- a/external/elfio +++ b/external/elfio @@ -1 +1 @@ -Subproject commit fbf8eafc2dab3ac441bc5221d967e23a2e6fdc46 +Subproject commit 1fdbb6423528684e7b5d6dd9095b64f5617b1434 diff --git a/riscv.sc/src/sc_main.cpp b/riscv.sc/src/sc_main.cpp index 3e723da..b82a28a 100644 --- a/riscv.sc/src/sc_main.cpp +++ b/riscv.sc/src/sc_main.cpp @@ -59,7 +59,7 @@ int sc_main(int argc, char *argv[]) { ("cycles,c", po::value()->default_value(-1), "number of cycles to run") ("quantum", po::value(), "SystemC quantum time in ns") ("reset,r", po::value(), "reset address") - ("trace,t", po::value()->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()->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") ("config-file,c", po::value()->default_value(""), "configuration file"); // clang-format on @@ -99,8 +99,8 @@ int sc_main(int argc, char *argv[]) { /////////////////////////////////////////////////////////////////////////// // set up tracing & transaction recording /////////////////////////////////////////////////////////////////////////// - scc::tracer trace("simple_system", static_cast(vm["trace"].as() >> 1), - vm["trace"].as() != 0); + auto trace_val = vm["trace"].as(); + scc::tracer trace("simple_system", static_cast(trace_val >> 1), trace_val != 0); /////////////////////////////////////////////////////////////////////////// // set up configuration ///////////////////////////////////////////////////////////////////////////