From 163eb3c56b115e649c72fceff89c8370b6e7306f Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 28 Sep 2018 17:12:46 -0700 Subject: 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 Maintainer: Gabe Black --- src/systemc/core/object.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/systemc/core/object.hh') 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__ -- cgit v1.2.3