From: Gabe Black Date: Sat, 22 Sep 2018 15:32:55 +0000 (-0700) Subject: systemc: Remove a hack which scaled sc_time into ps unnecessarily. X-Git-Tag: v19.0.0.0~1562 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=028e1c56b62b9cab90cbd98dbcb1b5698024b936;p=gem5.git systemc: Remove a hack which scaled sc_time into ps unnecessarily. sc_time is now represented in whatever the underlying time resolution is which isn't necessarily ps. Stop trying to scale it (incorrectly). Change-Id: I18975e0ab01386b24196666e0ba02d1b36e11735 Reviewed-on: https://gem5-review.googlesource.com/c/12976 Reviewed-by: Gabe Black Maintainer: Gabe Black --- diff --git a/src/systemc/core/scheduler.hh b/src/systemc/core/scheduler.hh index ebe15462c..0d853f5c6 100644 --- a/src/systemc/core/scheduler.hh +++ b/src/systemc/core/scheduler.hh @@ -218,8 +218,7 @@ class Scheduler Tick delayed(const ::sc_core::sc_time &delay) { - //XXX We're assuming the systemc time resolution is in ps. - return getCurTick() + delay.value() * SimClock::Int::ps; + return getCurTick() + delay.value(); } // For scheduling delayed/timed notifications/timeouts.