Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/49423 )
Change subject: scons: Record the sim_objects and enums passed into
SimObject().
......................................................................
scons: Record the sim_objects and enums passed into SimObject().
We'll use those to tell SCons what params headers, etc, to generate.
Change-Id: Iedc9c6a8cdfc2201e85bc7ba1d420dfa08b90cab
---
M src/SConscript
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/SConscript b/src/SConscript
index bcce695..5c36d44 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -144,6 +144,9 @@
fixed = False
modnames = []
+ sim_objects = dict()
+ enums = dict()
+
def __init__(self, source, *, sim_objects=[], enums=[],
tags=None, add_tags=None):
'''Specify the source file and any tags (automatically in
@@ -152,6 +155,9 @@
if self.fixed:
raise AttributeError("Too late to call SimObject now.")
+ SimObject.sim_objects[self.modpath] = sim_objects
+ SimObject.enums[self.modpath] = enums
+
bisect.insort_right(SimObject.modnames, self.modname)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/49423
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Iedc9c6a8cdfc2201e85bc7ba1d420dfa08b90cab
Gerrit-Change-Number: 49423
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s