summaryrefslogtreecommitdiff
path: root/src/systemc/ext
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-07-19 16:53:27 -0700
committerGabe Black <gabeblack@google.com>2018-09-11 21:41:09 +0000
commitb7ab029883d8311756eefb54c706f83636bf7327 (patch)
tree6feec8c8d24cde79ae13170a449dd82b1e8b4b64 /src/systemc/ext
parenta6c0e4623c6bb1077ca43c66663e039efb221bda (diff)
downloadgem5-b7ab029883d8311756eefb54c706f83636bf7327.tar.xz
systemc: Implement some of the basics of sc_time.
This is a very incomplete implementation, but is enough to unblock implementing some other dependent features. Change-Id: Ibd2f3476fe01389e277c6956d48337f551d14acd Reviewed-on: https://gem5-review.googlesource.com/12034 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/ext')
-rw-r--r--src/systemc/ext/core/sc_time.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemc/ext/core/sc_time.hh b/src/systemc/ext/core/sc_time.hh
index 362834cce..014755522 100644
--- a/src/systemc/ext/core/sc_time.hh
+++ b/src/systemc/ext/core/sc_time.hh
@@ -84,6 +84,9 @@ class sc_time
static sc_time from_value(sc_dt::uint64);
static sc_time from_seconds(double);
static sc_time from_string(const char *str);
+
+ private:
+ uint64_t val;
};
const sc_time operator + (const sc_time &, const sc_time &);