gem5/src
Christian Menard 5fd959260c misc: Fix order of object construction in the CxxConfigManager
The CxxConfigManager schould create objects by traversing the object tree
starting from the root object. However, currently objects are created in
aplphabetical order, which only works if the root object alphabetically
comes before any system object (e.g. 'root' < 'system'. Otherwise (e.g.
'a_system' < 'root'), object construction may fail. The reason for this
behaviour is, that the call to findObject() in the sorting code also
constructs the object if it is not yet existent. Then findTraversalOrder()
calls findObject("root") and subseqeuently calls findObject() on all the
children, and so on. However, the call to findTraversalOrder() is
redundant, since all objects are already created in alphabetical order.
This patch simply removes the alphabetical ordering, leading to the objects
being created starting from 'root'.

Reviewed at http://reviews.gem5.org/r/3778/

Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
2017-02-09 19:11:23 -05:00
..
arch arm: AArch64 report cache size correctly when reading CTR_EL0 2017-02-09 18:54:28 -05:00
base style: [patch 3/22] reduce include dependencies in some headers 2016-11-09 14:27:40 -06:00
cpu style: [patch 3/22] reduce include dependencies in some headers 2016-11-09 14:27:40 -06:00
dev dev: net/i8254xGBe add two more wakeup registers to ignore 2017-02-09 18:59:55 -05:00
doc sim: Adding support for power models 2016-06-06 17:16:44 +01:00
doxygen MEM: Put memory system document into doxygen 2012-09-25 11:49:41 -05:00
gpu-compute style: [patch 3/22] reduce include dependencies in some headers 2016-11-09 14:27:40 -06:00
kern style: [patch 3/22] reduce include dependencies in some headers 2016-11-09 14:27:40 -06:00
mem mem: Refactor CommMonitor stats, add basic atomic mode stats 2017-01-27 14:58:16 -06:00
proto proto: Fix warnings for protoc v3 2017-01-27 15:07:20 -06:00
python style: Force Python.h to be included before main header 2017-02-07 15:28:33 +00:00
sim misc: Fix order of object construction in the CxxConfigManager 2017-02-09 19:11:23 -05:00
unittest python: Move native wrappers to the _m5 namespace 2017-01-27 12:40:01 +00:00
Doxyfile Doxygen: Update the version of the Doxyfile 2012-10-11 06:38:42 -04:00
SConscript python: Move native wrappers to the _m5 namespace 2017-01-27 12:40:01 +00:00