Gabe Black has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/49423 )
(
32 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the
submitted one.
)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
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/49423
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
Tested-by: kokoro <[email protected]>
---
M src/SConscript
1 file changed, 20 insertions(+), 0 deletions(-)
Approvals:
Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/SConscript b/src/SConscript
index d566010..c390b81 100644
--- a/src/SConscript
+++ b/src/SConscript
@@ -145,6 +145,9 @@
fixed = False
+ 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
@@ -153,6 +156,8 @@
if self.fixed:
raise AttributeError("Too late to call SimObject now.")
+ SimObject.sim_objects[self.modpath] = sim_objects
+ SimObject.enums[self.modpath] = enums
# This regular expression is simplistic and assumes that the import takes
up
# the entire line, doesn't have the keyword "public", uses double quotes,
has
--
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: 34
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s