# HG changeset patch # User Christian Menard # Parent 54cf9a388a9d systemc example: Fixed an ambiguous call error and a typo in the README gcc 6.1.1 complained about the call to sc_time being ambiguous (with systemc 2.3.1) --- util/systemc/README | 2 +- util/systemc/main.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/systemc/README b/util/systemc/README index a886e02..e100fb3 100644 --- a/util/systemc/README +++ b/util/systemc/README @@ -32,7 +32,7 @@ needed): > cd ../.. > scons build/ARM/gem5.opt > scons --with-cxx-config --without-python build/ARM/libgem5_opt.so -> cd util/cxx_config +> cd util/systemc Then edit Makefile to set the paths for SystemC and run make diff --git a/util/systemc/main.cc b/util/systemc/main.cc index 75a7785..81835b7 100644 --- a/util/systemc/main.cc +++ b/util/systemc/main.cc @@ -289,7 +289,7 @@ void SimControl::run() std::cerr << "Waiting for " << wait_period << "ps for" " SystemC to catch up to gem5\n"; - wait(sc_core::sc_time(wait_period, sc_core::SC_PS)); + wait(sc_core::sc_time((double) wait_period, sc_core::SC_PS));; } config_manager->loadState(*checkpoint);