summaryrefslogtreecommitdiff
path: root/src/systemc/channel
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-06-15 23:01:40 -0700
committerGabe Black <gabeblack@google.com>2018-08-28 21:21:22 +0000
commit48b56f7c3ef7e281afd9bccd984d3483eb9c8199 (patch)
treefd633bf4dc6c9a4ab9d49e88f90f6a2c01e65415 /src/systemc/channel
parent098aa356cf42047def22bb90e0bae4f5b09bb363 (diff)
downloadgem5-48b56f7c3ef7e281afd9bccd984d3483eb9c8199.tar.xz
systemc: Add the nonstandard time_stamp function.
Change-Id: I608c390b125611e5b62483c7e8567bb5479df553 Reviewed-on: https://gem5-review.googlesource.com/11281 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.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/systemc/channel/sc_clock.cc b/src/systemc/channel/sc_clock.cc
index 891c66609..65f1f100d 100644
--- a/src/systemc/channel/sc_clock.cc
+++ b/src/systemc/channel/sc_clock.cc
@@ -107,6 +107,13 @@ sc_clock::posedge_first() const
return false;
}
+const sc_time &
+sc_clock::time_stamp()
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ return *(const sc_time *)nullptr;
+}
+
const char *sc_clock::kind() const { return "sc_clock"; }
void sc_clock::before_end_of_elaboration() {}