Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/11356
Change subject: systemc: Enable some more sc_simcontext related tests.
......................................................................
systemc: Enable some more sc_simcontext related tests.
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
---
M src/systemc/core/sc_simcontext.cc
M src/systemc/ext/core/sc_simcontext.hh
M src/systemc/tests/working.filt
3 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/src/systemc/core/sc_simcontext.cc
b/src/systemc/core/sc_simcontext.cc
index 6a281e5..647cb16 100644
--- a/src/systemc/core/sc_simcontext.cc
+++ b/src/systemc/core/sc_simcontext.cc
@@ -53,6 +53,20 @@
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()
{
diff --git a/src/systemc/ext/core/sc_simcontext.hh
b/src/systemc/ext/core/sc_simcontext.hh
index 7abcbb3..4beb8b7 100644
--- a/src/systemc/ext/core/sc_simcontext.hh
+++ b/src/systemc/ext/core/sc_simcontext.hh
@@ -42,6 +42,8 @@
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();
diff --git a/src/systemc/tests/working.filt b/src/systemc/tests/working.filt
index 801a051..8abb37e 100644
--- a/src/systemc/tests/working.filt
+++ b/src/systemc/tests/working.filt
@@ -15,11 +15,6 @@
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",
--
To view, visit https://gem5-review.googlesource.com/11356
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I00b5cc0c6eb658eb689b9c85ed171f290009768d
Gerrit-Change-Number: 11356
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev