systemc: Enable some more sc_simcontext related tests.
authorGabe Black <gabeblack@google.com>
Tue, 19 Jun 2018 02:09:56 +0000 (19:09 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 5 Sep 2018 05:59:23 +0000 (05:59 +0000)
Now that we bit the bullet and stubbed out sc_simcontext and related
functions a little bit, we can enable a couple more tests. This change
also adds in some functions the new tests expect sc_simcontext to have.

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

src/systemc/core/sc_simcontext.cc
src/systemc/ext/core/sc_simcontext.hh
src/systemc/tests/working.filt

index 6a281e5b11a4b1bbaa750fedb421dad12e6b3269..647cb16db5014d6cfd47b79c4aedd53688afb7d1 100644 (file)
@@ -53,6 +53,20 @@ sc_simcontext::get_curr_proc_info()
     return nullptr;
 }
 
+sc_object *
+sc_simcontext::first_object()
+{
+    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+    return nullptr;
+}
+
+sc_object *
+sc_simcontext::next_object()
+{
+    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+    return nullptr;
+}
+
 sc_simcontext *
 sc_get_curr_simcontext()
 {
index 7abcbb378ee80710d89366797523bae54f67d08f..4beb8b73e0fc34b10a91a690a44e46a4cd4a651e 100644 (file)
@@ -42,6 +42,8 @@ class sc_simcontext
     sc_dt::uint64 delta_count() const;
     void reset();
     sc_curr_proc_handle get_curr_proc_info();
+    sc_object *first_object();
+    sc_object *next_object();
 };
 
 sc_simcontext *sc_get_curr_simcontext();
index 801a05176c63a239282f1be884e77717b3e34776..8abb37ee2ba6f1f4ab9ae24d4ab95bd2303263c6 100644 (file)
@@ -15,11 +15,6 @@ path.startswith("systemc/kernel/phase_callbacks/"),
 
 
 path in (
-    # Uses sc_get_curr_simcontext.
-    "systemc/kernel/sc_object_manager/test01",
-    "systemc/kernel/sc_name_gen/test1",
-    "systemc/kernel/sc_process_b/test2",
-
     # Uses sc_elab_and_sim.
     "systemc/kernel/sc_main_main",