Updated to latest scc version
This commit is contained in:
@ -30,8 +30,8 @@
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
#ifndef _SIFIVE_HIFIVE1_H_
|
||||
#define _SIFIVE_HIFIVE1_H_
|
||||
#ifndef _SYSC_TOP_HIFIVE1_H_
|
||||
#define _SYSC_TOP_HIFIVE1_H_
|
||||
|
||||
#include <sysc/top/terminal.h>
|
||||
#include <sysc/top/mcp_adc.h>
|
||||
@ -65,4 +65,4 @@ protected:
|
||||
|
||||
}
|
||||
|
||||
#endif /* _SYSC_SIFIVE_HIFIVE1_H_ */
|
||||
#endif /* _SYSC_TOP_HIFIVE1_H_ */
|
||||
|
@ -42,11 +42,6 @@ using namespace sc_core;
|
||||
CLIParser::CLIParser(int argc, char *argv[])
|
||||
: desc("Options")
|
||||
, valid(false) {
|
||||
scc::init_logging();
|
||||
LOGGER(DEFAULT)::reporting_level() = logging::WARNING;
|
||||
LOGGER(connection)::reporting_level() = logging::WARNING;
|
||||
LOGGER(SystemC)::reporting_level() = logging::WARNING;
|
||||
|
||||
build();
|
||||
try {
|
||||
// Variant 1: no non-options
|
||||
@ -90,21 +85,7 @@ CLIParser::CLIParser(int argc, char *argv[])
|
||||
SC_FULL, // logging::TRACE
|
||||
SC_DEBUG}; // logging::TRACE+1
|
||||
auto log_level = vm_["verbose"].as<int>();
|
||||
auto l = logging::as_log_level(log_level > 6 ? 6 : log_level);
|
||||
LOGGER(DEFAULT)::reporting_level() = l;
|
||||
LOGGER(DEFAULT)::print_time() = false;
|
||||
LOGGER(connection)::reporting_level() = l;
|
||||
LOGGER(connection)::print_time() = false;
|
||||
LOGGER(SystemC)::reporting_level() = l;
|
||||
LOGGER(SystemC)::print_time() = false;
|
||||
sc_report_handler::set_verbosity_level(verbosity[log_level]);
|
||||
}
|
||||
if (vm_.count("log-file")) {
|
||||
// configure the connection logger
|
||||
auto f = fopen(vm_["log-file"].as<std::string>().c_str(), "w");
|
||||
LOG_OUTPUT(DEFAULT)::stream() = f;
|
||||
LOG_OUTPUT(connection)::stream() = f;
|
||||
LOG_OUTPUT(SystemC)::stream() = f;
|
||||
scc::init_logging(logging::as_log_level(log_level > 6 ? 6 : log_level));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user