summaryrefslogtreecommitdiff
path: root/src/systemc/core/object.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-09-28 17:12:46 -0700
committerGabe Black <gabeblack@google.com>2018-10-16 00:40:21 +0000
commit163eb3c56b115e649c72fceff89c8370b6e7306f (patch)
treee66057d1e2107b72aad9e256e4620c287d6cbe37 /src/systemc/core/object.hh
parent3fe6ebb325f3630af32d9210a7121eb5710bf42f (diff)
downloadgem5-163eb3c56b115e649c72fceff89c8370b6e7306f.tar.xz
systemc: Centralize how object parents are chosen.
There's a lot of repeated code for this. Also, the sc_vector type needs to be able to artificially inject a parent for the objects it creates. Change-Id: I76f9b551632cd2cd70e26741b215290b35c382e9 Reviewed-on: https://gem5-review.googlesource.com/c/13194 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core/object.hh')
-rw-r--r--src/systemc/core/object.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemc/core/object.hh b/src/systemc/core/object.hh
index adccde5b3..cff8d84e2 100644
--- a/src/systemc/core/object.hh
+++ b/src/systemc/core/object.hh
@@ -113,6 +113,10 @@ extern Objects allObjects;
sc_core::sc_object *findObject(
const char *name, const Objects &objects=topLevelObjects);
+sc_core::sc_object *pickParentObj();
+void pushParentObj(sc_core::sc_object *obj);
+void popParentObj();
+
} // namespace sc_gem5
#endif //__SYSTEMC_CORE_OBJECT_HH__