systemc: Add m_cur_val and m_new_val to sc_signal.
authorGabe Black <gabeblack@google.com>
Tue, 19 Jun 2018 02:07:14 +0000 (19:07 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 5 Sep 2018 05:59:04 +0000 (05:59 +0000)
These members are referred to in one of the tests.

Change-Id: Iab0110a0e3acf627986664069622704f17b703a1
Reviewed-on: https://gem5-review.googlesource.com/11355
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/ext/channel/sc_signal.hh

index b41af56bb02e2639989ba6f24a294c9855f7e3d6..5da4116601c0798be1241f3123cf9453766b6fb0 100644 (file)
@@ -158,6 +158,12 @@ class sc_signal : public sc_signal_inout_if<T>,
         sc_channel_warn_unimpl(__PRETTY_FUNCTION__);
     }
 
+    // These members which store the current and future value of the signal
+    // are not specified in the standard but are referred to directly by one
+    // of the tests.
+    T m_cur_val;
+    T m_new_val;
+
   private:
     // Disabled
     sc_signal(const sc_signal<T, WRITER_POLICY> &) :