Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/48964 )

Change subject: scons: Keep the list of all CPU models in a construction variable.
......................................................................

scons: Keep the list of all CPU models in a construction variable.

This relaxes ordering around CPU model declaration.

Change-Id: Ie5f8da1903a883bd4d98800dfbef7fd913021f77
---
M src/cpu/SConsopts
1 file changed, 3 insertions(+), 3 deletions(-)



diff --git a/src/cpu/SConsopts b/src/cpu/SConsopts
index 2dec0d5..af35a20 100644
--- a/src/cpu/SConsopts
+++ b/src/cpu/SConsopts
@@ -25,12 +25,12 @@

 Import('*')

-all_cpus = set()
 def CpuModel(name):
-    all_cpus.add(name)
+    main.Append(ALL_CPU_MODELS=[name])

 Export('CpuModel')

 def add_cpu_models_var():
-    sticky_vars.Add(ListVariable('CPU_MODELS', 'CPU models', [], all_cpus))
+    sticky_vars.Add(ListVariable('CPU_MODELS', 'CPU models', [],
+                set(main.get('ALL_CPU_MODELS', []))))
 AfterSConsopts(add_cpu_models_var)

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/48964
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: Ie5f8da1903a883bd4d98800dfbef7fd913021f77
Gerrit-Change-Number: 48964
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabe.bl...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to