summaryrefslogtreecommitdiff
path: root/src/systemc/core
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-09-22 08:32:55 -0700
committerGabe Black <gabeblack@google.com>2018-10-16 00:33:48 +0000
commit028e1c56b62b9cab90cbd98dbcb1b5698024b936 (patch)
tree0a817f65339395ea6e4c76cef67f70da45ac083e /src/systemc/core
parentb58f56bf7fe97dbe94a28123ddacae2053810932 (diff)
downloadgem5-028e1c56b62b9cab90cbd98dbcb1b5698024b936.tar.xz
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 <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core')
-rw-r--r--src/systemc/core/scheduler.hh3
1 files changed, 1 insertions, 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.