summaryrefslogtreecommitdiff
path: root/src/systemc/core/object.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-08-28 21:23:29 -0700
committerGabe Black <gabeblack@google.com>2018-10-03 00:13:28 +0000
commitcfe48360f933329f10baa0baa1c750493180d891 (patch)
treefc38b60bb91f0a64f68cb0edf4eee9462658bb6c /src/systemc/core/object.hh
parentae373556b71e4d4c5c2022110e7a4b00c55666a9 (diff)
downloadgem5-cfe48360f933329f10baa0baa1c750493180d891.tar.xz
systemc: Ensure all objects and events have unique names.
Change-Id: I59b78048849953773b80bb2dac9b834762625331 Reviewed-on: https://gem5-review.googlesource.com/c/12439 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 cb759d890..6d9e8ecfd 100644
--- a/src/systemc/core/object.hh
+++ b/src/systemc/core/object.hh
@@ -90,6 +90,8 @@ class Object
EventsIt addChildEvent(sc_core::sc_event *e);
void delChildEvent(sc_core::sc_event *e);
+ void pickUniqueName(std::string &name);
+
private:
sc_core::sc_object *_sc_obj;
@@ -103,6 +105,8 @@ class Object
sc_core::sc_attr_cltn cltn;
};
+void pickUniqueName(::sc_core::sc_object *parent, std::string &name);
+
extern Objects topLevelObjects;
extern Objects allObjects;