Searched hist:11231 (Results 1 - 1 of 1) sorted by relevance

/gem5/src/python/m5/
H A DSimObject.pydiff 11231:75c0e4915c05 Tue Dec 01 08:01:00 EST 2015 Andreas Sandberg <andreas.sandberg@arm.com> config: Fix broken SimObject listing

The gem5 option '--list-sim-objects' is supposed to list all available
SimObjects and their parameters. It currently chokes on SimObjects
with parameters that have an object instance as their default
value. This is caused by __str__ in SimObject trying to resolve its
complete path. When the path resolution method reaches the parent
object (a MetaSimObject since it hasn't been instantiated), it dies
with a Python exception.

This changeset adds a guard to stop path resolution if the parent
object is a MetaSimObject.

Completed in 27 milliseconds