summaryrefslogtreecommitdiff
path: root/src/systemc/channel
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-09-11 17:43:50 -0700
committerGabe Black <gabeblack@google.com>2018-10-09 21:47:12 +0000
commita41c71b3121b0e31f9c69032aaf91c222b857e8c (patch)
treed572945e5a1aa9c9fad3e05db05623cf22104a3d /src/systemc/channel
parent19fbeb515aacbf954dba1d4066007736b1252c0e (diff)
downloadgem5-a41c71b3121b0e31f9c69032aaf91c222b857e8c.tar.xz
systemc: Implement the sc_clock::time_stamp function.
This is just a non-standard static alias for the sc_time_stamp function. Change-Id: Ibcd0559e7dab8232528628259abb8d1bfaee16e0 Reviewed-on: https://gem5-review.googlesource.com/c/12619 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/channel')
-rw-r--r--src/systemc/channel/sc_clock.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemc/channel/sc_clock.cc b/src/systemc/channel/sc_clock.cc
index 332604f63..f67d2565d 100644
--- a/src/systemc/channel/sc_clock.cc
+++ b/src/systemc/channel/sc_clock.cc
@@ -36,6 +36,7 @@
#include "systemc/core/sched_event.hh"
#include "systemc/core/scheduler.hh"
#include "systemc/ext/channel/sc_clock.hh"
+#include "systemc/ext/core/sc_main.hh"
#include "systemc/ext/core/sc_module.hh" // for sc_gen_unique_name
namespace sc_gem5
@@ -154,8 +155,7 @@ bool sc_clock::posedge_first() const { return _posedgeFirst; }
const sc_time &
sc_clock::time_stamp()
{
- warn("%s not implemented.\n", __PRETTY_FUNCTION__);
- return *(const sc_time *)nullptr;
+ return sc_time_stamp();
}
void