changeset 494ab5474716 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=494ab5474716
description:
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 <[email protected]>
diffstat:
util/systemc/sc_module.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r ac5237fa4230 -r 494ab5474716 util/systemc/sc_module.cc
--- a/util/systemc/sc_module.cc Mon Jan 09 09:33:42 2017 -0600
+++ b/util/systemc/sc_module.cc Mon Jan 09 09:34:36 2017 -0600
@@ -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) {
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev