summaryrefslogtreecommitdiff
path: root/src/systemc/ext
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-09-26 22:53:01 -0700
committerGabe Black <gabeblack@google.com>2018-10-16 00:37:33 +0000
commit07cad60bb0865d95cfe4c5ce2ea08d7c8d33f34f (patch)
tree4a45af24df5a39f7cbfa478ed1b2dc87366b21cb /src/systemc/ext
parent1fe271c71ac43d7ac8ed5980ac3887e77f4671b4 (diff)
downloadgem5-07cad60bb0865d95cfe4c5ce2ea08d7c8d33f34f.tar.xz
systemc: Implement the sc_time_tuple class.
This class is non-standard and is an implementation detail in Accellera's implementation, but is referred to directly by the tests. It does the same thing as the time printing function, so rather than having duplicate code the printing function now uses the sc_time_tuple class even though it was doing fine on its own already. Change-Id: I69594ed0651f212ded6d979d60523bb3b0a789b1 Reviewed-on: https://gem5-review.googlesource.com/c/13189 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.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemc/ext/core/sc_time.hh b/src/systemc/ext/core/sc_time.hh
index 014755522..0a31a655a 100644
--- a/src/systemc/ext/core/sc_time.hh
+++ b/src/systemc/ext/core/sc_time.hh
@@ -113,7 +113,7 @@ sc_time sc_get_default_time_unit();
class sc_time_tuple
{
public:
- sc_time_tuple() : _value(), _unit(SC_SEC), _offset(1) {}
+ sc_time_tuple() : _value(), _unit(SC_SEC), _set(false) {}
sc_time_tuple(const sc_time &);
bool has_value() const;
@@ -131,7 +131,7 @@ class sc_time_tuple
private:
sc_dt::uint64 _value;
sc_time_unit _unit;
- unsigned _offset;
+ bool _set;
};
} // namespace sc_core