systemc: Remove a hack which scaled sc_time into ps unnecessarily.
authorGabe Black <gabeblack@google.com>
Sat, 22 Sep 2018 15:32:55 +0000 (08:32 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:33:48 +0000 (00:33 +0000)
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 <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/core/scheduler.hh

index ebe15462c9015dd207cdc76766afef8fdea3d713..0d853f5c68f9d48005ba8598d9cc19dfaa5e52a1 100644 (file)
@@ -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.