From 63bb17e4bd1d37aa22a87a9614957ce1302f95a9 Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Mon, 9 Jan 2017 09:34:36 -0600 Subject: [PATCH] misc: fixes deprecated sc_time function for SystemC 2.3.1 The non-standard sc_time constructors - sc_time( uint64, bool scale ) - sc_time( double, bool scale ) have been deprecated in SystemC 2.3.1 and a warning is issued when being used. Insted the new 'sc_time::from_value' function is used to omit the warning message. Signed-off-by: Jason Lowe-Power --- util/systemc/sc_module.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util/systemc/sc_module.cc b/util/systemc/sc_module.cc index 71b3b5fbb..46a8d39ee 100644 --- a/util/systemc/sc_module.cc +++ b/util/systemc/sc_module.cc @@ -42,6 +42,7 @@ * Authors: Nathan Binkert * Steve Reinhardt * Andrew Bardsley + * Matthias Jung */ /** @@ -221,8 +222,8 @@ Module::eventLoop() /* 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) {