From 028e1c56b62b9cab90cbd98dbcb1b5698024b936 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 22 Sep 2018 08:32:55 -0700 Subject: [PATCH] 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 --- src/systemc/core/scheduler.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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. -- 2.30.2