# HG changeset patch # Parent fc247b9c42b69356398a6fd725f6ea1e110bc51b misc: fixes deprecated sc_time function for SystemC 2.3.1 diff -r fc247b9c42b6 util/systemc/sc_module.cc --- a/util/systemc/sc_module.cc Thu May 19 15:19:35 2016 -0500 +++ b/util/systemc/sc_module.cc Thu May 26 01:03:12 2016 +0200 @@ -42,6 +42,7 @@ * Authors: Nathan Binkert * Steve Reinhardt * Andrew Bardsley + * Matthias Jung */ /** @@ -221,8 +222,8 @@ /* The next event is scheduled in the future, wait until * then or until externalSchedulingEvent */ - eventLoopEnterEvent.notify(sc_core::sc_time( - sc_dt::uint64(wait_period), 0)); + eventLoopEnterEvent.notify(sc_core::sc_time::from_value( + sc_dt::uint64(wait_period))); return; } else if (gem5_time > next_event_time) {